Skip to content
Permalink
Browse files

Register so it doesn’t get removed

  • Loading branch information...
muglug committed Jul 24, 2019
1 parent 5770a6c commit 352f18b1694b086631718998612747e121ddc2fd
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Psalm/Internal/Analyzer/Statements/Expression/CallAnalyzer.php
@@ -1188,7 +1188,7 @@ protected static function checkFunctionLikeArgumentsMatch(
) {
$literal = $arg->value->inferredType->getSingleStringLiteral();
if (!$context->hasVariable('$' . $literal->value)) {
if (!$context->hasVariable('$' . $literal->value, $statements_analyzer)) {
if (IssueBuffer::accepts(
new UndefinedVariable(
'Cannot find referenced variable $' . $literal->value,

0 comments on commit 352f18b

Please sign in to comment.
You can’t perform that action at this time.