Skip to content

Commit da8e93e

Browse files
committed
Fix
1 parent 4292742 commit da8e93e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/IssetCheck.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function check(Expr $expr, Scope $scope, string $operatorDescription, str
123123

124124
} elseif ($expr instanceof Node\Expr\PropertyFetch || $expr instanceof Node\Expr\StaticPropertyFetch) {
125125

126-
$propertyReflection = $this->propertyReflectionFinder->findPropertyReflectionFromNode($expr, $scope);
126+
$propertyReflection = $this->propertyReflectionFinder->findPropertyReflectionFromNode($expr, $scope->toMutatingScope());
127127

128128
if ($propertyReflection === null) {
129129
if ($expr instanceof Node\Expr\PropertyFetch) {

0 commit comments

Comments
 (0)