Skip to content

Commit 476d051

Browse files
committed
Update MutatingScope.php
1 parent 150f3f2 commit 476d051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Analyser/MutatingScope.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4382,7 +4382,7 @@ private function shouldInvalidateExpression(string $exprStringToInvalidate, Expr
43824382
if (
43834383
$exprStringToInvalidate === '$this'
43844384
&& $node instanceof Name
4385-
&& in_array($node->name, ['self', 'static', 'parent'], true)
4385+
&& in_array($node->toLowerString(), ['self', 'static', 'parent'], true)
43864386
) {
43874387
return true;
43884388
}

0 commit comments

Comments
 (0)