Skip to content

Commit

Permalink
Fix internal error
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Nov 16, 2020
1 parent c8eaa31 commit 63de0e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Analyser/MutatingScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -2710,7 +2710,7 @@ public function enterAnonymousFunction(
}
$variableTypes[$variableName] = VariableTypeHolder::createYes($variableType);
foreach ($this->moreSpecificTypes as $exprString => $moreSpecificType) {
$matches = \Nette\Utils\Strings::matchAll($exprString, '#^\$([a-zA-Z_\x7f-\xff][a-zA-Z_0-9\x7f-\xff]*)#');
$matches = \Nette\Utils\Strings::matchAll((string) $exprString, '#^\$([a-zA-Z_\x7f-\xff][a-zA-Z_0-9\x7f-\xff]*)#');
if ($matches === []) {
continue;
}
Expand Down

0 comments on commit 63de0e8

Please sign in to comment.