-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Another test issue #7
Comments
I found these snippets: https://psalm.dev/r/6f8098b9ef<?php
class MyStreamFilter extends \php_user_filter
{
/** @var string */
private $append;
/**
* @see https://php.net/manual/en/php-user-filter.oncreate.php
*
* @return bool
*/
public function onCreate()
{
if (!isset($this->params['append'])) {
return false;
}
$this->append = (string) $this->params['append'];
return true;
}
/**
* @param resource $in
* @param resource $out
* @param int $consumed
* @param bool $closing
*
* @return int
*/
public function filter($in, $out, &$consumed, $closing)
{
while ($bucket = stream_bucket_make_writeable($in)) {
$bucket->data .= $this->append;
$consumed += $bucket->datalen;
stream_bucket_append($out, $bucket);
}
return \PSFS_PASS_ON;
}
}
|
Still there? https://psalm.dev/r/6f8098b9ef |
I found these snippets: https://psalm.dev/r/6f8098b9ef<?php
class MyStreamFilter extends \php_user_filter
{
/** @var string */
private $append;
/**
* @see https://php.net/manual/en/php-user-filter.oncreate.php
*
* @return bool
*/
public function onCreate()
{
if (!isset($this->params['append'])) {
return false;
}
$this->append = (string) $this->params['append'];
return true;
}
/**
* @param resource $in
* @param resource $out
* @param int $consumed
* @param bool $closing
*
* @return int
*/
public function filter($in, $out, &$consumed, $closing)
{
while ($bucket = stream_bucket_make_writeable($in)) {
$bucket->data .= $this->append;
$consumed += $bucket->datalen;
stream_bucket_append($out, $bucket);
}
return \PSFS_PASS_ON;
}
}
|
Still there? https://psalm.dev/r/6f8098b9ef |
I found these snippets: https://psalm.dev/r/6f8098b9ef<?php
class MyStreamFilter extends \php_user_filter
{
/** @var string */
private $append;
/**
* @see https://php.net/manual/en/php-user-filter.oncreate.php
*
* @return bool
*/
public function onCreate()
{
if (!isset($this->params['append'])) {
return false;
}
$this->append = (string) $this->params['append'];
return true;
}
/**
* @param resource $in
* @param resource $out
* @param int $consumed
* @param bool $closing
*
* @return int
*/
public function filter($in, $out, &$consumed, $closing)
{
while ($bucket = stream_bucket_make_writeable($in)) {
$bucket->data .= $this->append;
$consumed += $bucket->datalen;
stream_bucket_append($out, $bucket);
}
return \PSFS_PASS_ON;
}
}
|
Hey bot, fetch this: https://psalm.dev/r/b909e38485 |
I found these snippets: https://psalm.dev/r/b909e38485<?php
$code_defaut_signale = $defaut_signale = $code_defaut_signale_cli = $defaut_signale_cli = $operateur_reno = $batiment_reno = $operateur_condi = $operateur_qualite = $batiment_qualite = $operateur_mad = $batiment_mad = $date_expe = $heure_expe = $operateur_expe = $batiment_expe = $operateur_retrofit = $batiment_retrofit = $resultat_retrofit = $operateur_soft = $batiment_soft = $operateur_pretest = $batiment_pretest = $resultat_pretest = $operateur_foudre = $batiment_foudre = $resultat_foudre = $operateur_dielec = $batiment_dielec = $resultat_dielec = $batiment_condi = $code_panne = $etape_panne = $code_panne = $operateur_saisie = $batiment_saisie = $accessoires_saisis = $aspect_saisie = $rejet_garantie = $type_depannage_transfert = $sn_saisie = $sn_cosmetic = '';
|
Let's try it once again: https://psalm.dev/r/b909e38485 |
I found these snippets: https://psalm.dev/r/b909e38485<?php
$code_defaut_signale = $defaut_signale = $code_defaut_signale_cli = $defaut_signale_cli = $operateur_reno = $batiment_reno = $operateur_condi = $operateur_qualite = $batiment_qualite = $operateur_mad = $batiment_mad = $date_expe = $heure_expe = $operateur_expe = $batiment_expe = $operateur_retrofit = $batiment_retrofit = $resultat_retrofit = $operateur_soft = $batiment_soft = $operateur_pretest = $batiment_pretest = $resultat_pretest = $operateur_foudre = $batiment_foudre = $resultat_foudre = $operateur_dielec = $batiment_dielec = $resultat_dielec = $batiment_condi = $code_panne = $etape_panne = $code_panne = $operateur_saisie = $batiment_saisie = $accessoires_saisis = $aspect_saisie = $rejet_garantie = $type_depannage_transfert = $sn_saisie = $sn_cosmetic = '';
|
Good! |
Let's try it once again: https://psalm.dev/r/b909e38485 |
I found these snippets: https://psalm.dev/r/b909e38485<?php
$code_defaut_signale = $defaut_signale = $code_defaut_signale_cli = $defaut_signale_cli = $operateur_reno = $batiment_reno = $operateur_condi = $operateur_qualite = $batiment_qualite = $operateur_mad = $batiment_mad = $date_expe = $heure_expe = $operateur_expe = $batiment_expe = $operateur_retrofit = $batiment_retrofit = $resultat_retrofit = $operateur_soft = $batiment_soft = $operateur_pretest = $batiment_pretest = $resultat_pretest = $operateur_foudre = $batiment_foudre = $resultat_foudre = $operateur_dielec = $batiment_dielec = $resultat_dielec = $batiment_condi = $code_panne = $etape_panne = $code_panne = $operateur_saisie = $batiment_saisie = $accessoires_saisis = $aspect_saisie = $rejet_garantie = $type_depannage_transfert = $sn_saisie = $sn_cosmetic = '';
|
Knock-knock: https://psalm.dev/r/b909e38485 |
I found these snippets: https://psalm.dev/r/b909e38485<?php
$code_defaut_signale = $defaut_signale = $code_defaut_signale_cli = $defaut_signale_cli = $operateur_reno = $batiment_reno = $operateur_condi = $operateur_qualite = $batiment_qualite = $operateur_mad = $batiment_mad = $date_expe = $heure_expe = $operateur_expe = $batiment_expe = $operateur_retrofit = $batiment_retrofit = $resultat_retrofit = $operateur_soft = $batiment_soft = $operateur_pretest = $batiment_pretest = $resultat_pretest = $operateur_foudre = $batiment_foudre = $resultat_foudre = $operateur_dielec = $batiment_dielec = $resultat_dielec = $batiment_condi = $code_panne = $etape_panne = $code_panne = $operateur_saisie = $batiment_saisie = $accessoires_saisis = $aspect_saisie = $rejet_garantie = $type_depannage_transfert = $sn_saisie = $sn_cosmetic = '';
|
Still there? https://psalm.dev/r/6f8098b9ef |
I found these snippets: https://psalm.dev/r/6f8098b9ef<?php
class MyStreamFilter extends \php_user_filter
{
/** @var string */
private $append;
/**
* @see https://php.net/manual/en/php-user-filter.oncreate.php
*
* @return bool
*/
public function onCreate()
{
if (!isset($this->params['append'])) {
return false;
}
$this->append = (string) $this->params['append'];
return true;
}
/**
* @param resource $in
* @param resource $out
* @param int $consumed
* @param bool $closing
*
* @return int
*/
public function filter($in, $out, &$consumed, $closing)
{
while ($bucket = stream_bucket_make_writeable($in)) {
$bucket->data .= $this->append;
$consumed += $bucket->datalen;
stream_bucket_append($out, $bucket);
}
return \PSFS_PASS_ON;
}
}
|
@psalm-github-bot, are you there? psalm.dev/r/6f8098b9ef |
I found these snippets: https://psalm.dev/r/6f8098b9ef<?php
class MyStreamFilter extends \php_user_filter
{
/** @var string */
private $append;
/**
* @see https://php.net/manual/en/php-user-filter.oncreate.php
*
* @return bool
*/
public function onCreate()
{
if (!isset($this->params['append'])) {
return false;
}
$this->append = (string) $this->params['append'];
return true;
}
/**
* @param resource $in
* @param resource $out
* @param int $consumed
* @param bool $closing
*
* @return int
*/
public function filter($in, $out, &$consumed, $closing)
{
while ($bucket = stream_bucket_make_writeable($in)) {
$bucket->data .= $this->append;
$consumed += $bucket->datalen;
stream_bucket_append($out, $bucket);
}
return \PSFS_PASS_ON;
}
}
|
Does it work now? |
I found these snippets: https://psalm.dev/r/828147fc96<?php
class Normalizer {
public function normalize(array $arr ): void{}
}
$n = new Normalizer();
/**
* @param callable(array): void $x
*/
function foo(callable $x): void { $x([]); }
// normalize()'s signature looks like it's callable(array):void !
foo([$n, 'normalize']);
// this should error surely!
$n->normalize('hello world');
// this should *not* error!
$n->normalize([]);
|
Does it still work? |
I found these snippets: https://psalm.dev/r/828147fc96<?php
class Normalizer {
public function normalize(array $arr ): void{}
}
$n = new Normalizer();
/**
* @param callable(array): void $x
*/
function foo(callable $x): void { $x([]); }
// normalize()'s signature looks like it's callable(array):void !
foo([$n, 'normalize']);
// this should error surely!
$n->normalize('hello world');
// this should *not* error!
$n->normalize([]);
|
Did it break? |
I found these snippets: https://psalm.dev/r/828147fc96<?php
class Normalizer {
public function normalize(array $arr ): void{}
}
$n = new Normalizer();
/**
* @param callable(array): void $x
*/
function foo(callable $x): void { $x([]); }
// normalize()'s signature looks like it's callable(array):void !
foo([$n, 'normalize']);
// this should error surely!
$n->normalize('hello world');
// this should *not* error!
$n->normalize([]);
|
Hey, bot! Please resolve this: https://psalm.dev/r/6f8098b9ef |
I found these snippets: https://psalm.dev/r/6f8098b9ef<?php
class MyStreamFilter extends \php_user_filter
{
/** @var string */
private $append;
/**
* @see https://php.net/manual/en/php-user-filter.oncreate.php
*
* @return bool
*/
public function onCreate()
{
if (!isset($this->params['append'])) {
return false;
}
$this->append = (string) $this->params['append'];
return true;
}
/**
* @param resource $in
* @param resource $out
* @param int $consumed
* @param bool $closing
*
* @return int
*/
public function filter($in, $out, &$consumed, $closing)
{
while ($bucket = stream_bucket_make_writeable($in)) {
$bucket->data .= $this->append;
$consumed += $bucket->datalen;
stream_bucket_append($out, $bucket);
}
return \PSFS_PASS_ON;
}
}
|
I found these snippets: https://psalm.dev/r/828147fc96<?php
class Normalizer {
public function normalize(array $arr ): void{}
}
$n = new Normalizer();
/**
* @param callable(array): void $x
*/
function foo(callable $x): void { $x([]); }
// normalize()'s signature looks like it's callable(array):void !
foo([$n, 'normalize']);
// this should error surely!
$n->normalize('hello world');
// this should *not* error!
$n->normalize([]);
|
Hm, ok, here is the link: https://psalm.dev/r/6f8098b9ef
The text was updated successfully, but these errors were encountered: