@@ -751,7 +751,7 @@ public function getProperty(string $propertyName, ClassMemberAccessAnswerer $sco
751751
752752 // For BC purpose
753753 if ($ this ->getPhpExtension ()->hasStaticProperty ($ this , $ propertyName )) {
754- $ property = $ this ->wrapExtendedProperty ($ this ->getPhpExtension ()->getStaticProperty ($ this , $ propertyName ));
754+ $ property = $ this ->wrapExtendedProperty ($ propertyName , $ this ->getPhpExtension ()->getStaticProperty ($ this , $ propertyName ));
755755 if ($ scope ->canReadProperty ($ property )) {
756756 return $ this ->properties [$ key ] = $ property ;
757757 }
@@ -793,7 +793,7 @@ public function getInstanceProperty(string $propertyName, ClassMemberAccessAnswe
793793 continue ;
794794 }
795795
796- $ property = $ this ->wrapExtendedProperty ($ extension ->getProperty ($ this , $ propertyName ));
796+ $ property = $ this ->wrapExtendedProperty ($ propertyName , $ extension ->getProperty ($ this , $ propertyName ));
797797 if ($ scope ->canReadProperty ($ property )) {
798798 return $ this ->instanceProperties [$ key ] = $ property ;
799799 }
@@ -823,7 +823,7 @@ public function getStaticProperty(string $propertyName): ExtendedPropertyReflect
823823 }
824824
825825 if ($ this ->getPhpExtension ()->hasStaticProperty ($ this , $ propertyName )) {
826- $ property = $ this ->wrapExtendedProperty ($ this ->getPhpExtension ()->getStaticProperty ($ this , $ propertyName ));
826+ $ property = $ this ->wrapExtendedProperty ($ propertyName , $ this ->getPhpExtension ()->getStaticProperty ($ this , $ propertyName ));
827827 return $ this ->staticProperties [$ key ] = $ property ;
828828 }
829829
0 commit comments