Skip to content

Commit ff6da9e

Browse files
committed
Sync MutatingScope::issetCheck with IssetCheck
1 parent 7dd7b14 commit ff6da9e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Analyser/MutatingScope.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2415,8 +2415,7 @@ public function issetCheck(Expr $expr, callable $typeCallback, ?bool $result = n
24152415
return null;
24162416
}
24172417

2418-
$nativeType = $propertyReflection->getNativeType();
2419-
if (!$nativeType instanceof MixedType) {
2418+
if ($propertyReflection->hasNativeType() && !$propertyReflection->isVirtual()->yes()) {
24202419
if (!$this->hasExpressionType($expr)->yes()) {
24212420
if ($expr instanceof Node\Expr\PropertyFetch) {
24222421
return $this->issetCheckUndefined($expr->var);

0 commit comments

Comments
 (0)