Skip to content

Commit 1b17eaf

Browse files
committed
Update MutatingScope.php
1 parent ddbd27f commit 1b17eaf

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
@@ -4384,7 +4384,7 @@ private function shouldInvalidateExpression(string $exprStringToInvalidate, Expr
43844384
&& $node instanceof Name
43854385
&& (
43864386
in_array($node->toLowerString(), ['self', 'static', 'parent'], true)
4387-
|| $this->getClassReflection()->is($this->resolveName($node))
4387+
|| ($this->getClassReflection() !== null && $this->getClassReflection()->is($this->resolveName($node)))
43884388
)
43894389
) {
43904390
return true;

0 commit comments

Comments
 (0)