You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect this to report undefined variable $x, instead it crashes with an internal error.
For additional context, I discovered this while trying recreate an assert(!$this->isFirstClassCallable()) error I keep getting in my project but was not able to reproduce in the online parser. I'm hoping it is related.
Thanks!
The text was updated successfully, but these errors were encountered:
Psalm encountered an internal error:
/vendor/vimeo/psalm/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php: Psalm\Internal\Analyzer\Statements\Expression\Call\ArgumentsAnalyzer::evaluateArbitraryParam(): Argument #2 ($arg) must be of type PhpParser\Node\Arg, PhpParser\Node\VariadicPlaceholder given, called in /vendor/vimeo/psalm/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php on line 127
Psalm output (using commit 14d48a0):
ERROR: UndefinedGlobalVariable - 3:6 - Cannot find referenced variable $x in global scope
INFO: MixedMethodCall - 3:10 - Cannot determine the type of $x when calling method do
INFO: UnusedVariable - 3:1 - $z is never referenced or the value is not used
https://psalm.dev/r/16a7bedf08
I would expect this to report undefined variable $x, instead it crashes with an internal error.
For additional context, I discovered this while trying recreate an
assert(!$this->isFirstClassCallable())
error I keep getting in my project but was not able to reproduce in the online parser. I'm hoping it is related.Thanks!
The text was updated successfully, but these errors were encountered: