@@ -253,7 +253,7 @@ public function resolveDependencies(Node $node, Scope $scope): NodeDependencies
253
253
}
254
254
255
255
if ($ node ->name instanceof Node \Identifier) {
256
- $ propertyReflection = $ scope ->getPropertyReflection ($ fetchedOnType , $ node ->name ->toString ());
256
+ $ propertyReflection = $ scope ->getInstancePropertyReflection ($ fetchedOnType , $ node ->name ->toString ());
257
257
if ($ propertyReflection !== null ) {
258
258
$ this ->addClassToDependencies ($ propertyReflection ->getDeclaringClass ()->getName (), $ dependenciesReflections );
259
259
}
@@ -369,13 +369,13 @@ public function resolveDependencies(Node $node, Scope $scope): NodeDependencies
369
369
$ className = $ scope ->resolveName ($ node ->class );
370
370
if ($ this ->reflectionProvider ->hasClass ($ className )) {
371
371
$ 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 );
374
374
$ this ->addClassToDependencies ($ propertyReflection ->getDeclaringClass ()->getName (), $ dependenciesReflections );
375
375
}
376
376
}
377
377
} else {
378
- $ propertyReflection = $ scope ->getPropertyReflection ($ scope ->getType ($ node ->class ), $ node ->name ->toString ());
378
+ $ propertyReflection = $ scope ->getStaticPropertyReflection ($ scope ->getType ($ node ->class ), $ node ->name ->toString ());
379
379
if ($ propertyReflection !== null ) {
380
380
$ this ->addClassToDependencies ($ propertyReflection ->getDeclaringClass ()->getName (), $ dependenciesReflections );
381
381
}
0 commit comments