We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Noticed when checking for edge cases in arrow functions.
<?php function accepts_one($x) {} class Test { public static function no_args() {} } call_user_func(function () { accepts_one(1, $a); echo strlen('x', $other); // Should warn about missing $invalid $x = new class ($invalid) {}; // Should warn about missing $a and $b (and PhanParamTooMany), but not $x $fn = fn() => [ $z, new class ($a, $b) { public function __construct($first) {} public static function test(int $x) { return $x;}}, Test::no_args( $c, // should warn $d ), ]; return $fn; });
The text was updated successfully, but these errors were encountered:
Fix false positive PhanUndeclaredVariable for too many params
25e17f3
Fixes phan#3245
TysonAndre
Successfully merging a pull request may close this issue.
Noticed when checking for edge cases in arrow functions.
The text was updated successfully, but these errors were encountered: