Skip to content

Commit 63de0e8

Browse files
committed
Fix internal error
1 parent c8eaa31 commit 63de0e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analyser/MutatingScope.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2710,7 +2710,7 @@ public function enterAnonymousFunction(
27102710
}
27112711
$variableTypes[$variableName] = VariableTypeHolder::createYes($variableType);
27122712
foreach ($this->moreSpecificTypes as $exprString => $moreSpecificType) {
2713-
$matches = \Nette\Utils\Strings::matchAll($exprString, '#^\$([a-zA-Z_\x7f-\xff][a-zA-Z_0-9\x7f-\xff]*)#');
2713+
$matches = \Nette\Utils\Strings::matchAll((string) $exprString, '#^\$([a-zA-Z_\x7f-\xff][a-zA-Z_0-9\x7f-\xff]*)#');
27142714
if ($matches === []) {
27152715
continue;
27162716
}

0 commit comments

Comments
 (0)