@@ -253,7 +253,7 @@ public function resolveDependencies(Node $node, Scope $scope): NodeDependencies
253253 }
254254
255255 if ($ node ->name instanceof Node \Identifier) {
256- $ propertyReflection = $ scope ->getPropertyReflection ($ fetchedOnType , $ node ->name ->toString ());
256+ $ propertyReflection = $ scope ->getInstancePropertyReflection ($ fetchedOnType , $ node ->name ->toString ());
257257 if ($ propertyReflection !== null ) {
258258 $ this ->addClassToDependencies ($ propertyReflection ->getDeclaringClass ()->getName (), $ dependenciesReflections );
259259 }
@@ -369,13 +369,13 @@ public function resolveDependencies(Node $node, Scope $scope): NodeDependencies
369369 $ className = $ scope ->resolveName ($ node ->class );
370370 if ($ this ->reflectionProvider ->hasClass ($ className )) {
371371 $ propertyClassReflection = $ this ->reflectionProvider ->getClass ($ className );
372- if ($ propertyClassReflection ->hasProperty ($ node ->name ->toString ())) {
373- $ propertyReflection = $ propertyClassReflection ->getProperty ($ node ->name ->toString (), $ scope );
372+ if ($ propertyClassReflection ->hasStaticProperty ($ node ->name ->toString ())) {
373+ $ propertyReflection = $ propertyClassReflection ->getStaticProperty ($ node ->name ->toString (), $ scope );
374374 $ this ->addClassToDependencies ($ propertyReflection ->getDeclaringClass ()->getName (), $ dependenciesReflections );
375375 }
376376 }
377377 } else {
378- $ propertyReflection = $ scope ->getPropertyReflection ($ scope ->getType ($ node ->class ), $ node ->name ->toString ());
378+ $ propertyReflection = $ scope ->getStaticPropertyReflection ($ scope ->getType ($ node ->class ), $ node ->name ->toString ());
379379 if ($ propertyReflection !== null ) {
380380 $ this ->addClassToDependencies ($ propertyReflection ->getDeclaringClass ()->getName (), $ dependenciesReflections );
381381 }
0 commit comments