Skip to content

Commit 06d592d

Browse files
committed
Fix
1 parent 41837b4 commit 06d592d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analyser/NodeScopeResolver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2993,7 +2993,7 @@ static function (): void {
29932993
$propertyName = $expr->name->toString();
29942994
$propertyHolderType = $scopeBeforeVar->getType($expr->var);
29952995
$propertyReflection = $scopeBeforeVar->getPropertyReflection($propertyHolderType, $propertyName);
2996-
if ($propertyReflection !== null) {
2996+
if ($propertyReflection !== null && $this->phpVersion->supportsPropertyHooks()) {
29972997
$propertyDeclaringClass = $propertyReflection->getDeclaringClass();
29982998
if ($propertyDeclaringClass->hasNativeProperty($propertyName)) {
29992999
$nativeProperty = $propertyDeclaringClass->getNativeProperty($propertyName);

0 commit comments

Comments
 (0)