@@ -44,10 +44,8 @@ public function hasInstanceProperty(ClassReflection $classReflection, string $pr
4444 return $ this ->findProperty (
4545 $ classReflection ,
4646 $ propertyName ,
47- // TODO: Use hasInstanceProperty
48- static fn (Type $ type , string $ propertyName ): TrinaryLogic => $ type ->hasProperty ($ propertyName ),
49- // TODO: Use getInstanceProperty
50- static fn (Type $ type , string $ propertyName ): ExtendedPropertyReflection => $ type ->getProperty ($ propertyName , new OutOfClassScope ())
47+ static fn (Type $ type , string $ propertyName ): TrinaryLogic => $ type ->hasInstanceProperty ($ propertyName ),
48+ static fn (Type $ type , string $ propertyName ): ExtendedPropertyReflection => $ type ->getInstanceProperty ($ propertyName , new OutOfClassScope ())
5149 ) !== null ;
5250 }
5351
@@ -56,10 +54,8 @@ public function getInstanceProperty(ClassReflection $classReflection, string $pr
5654 $ property = $ this ->findProperty (
5755 $ classReflection ,
5856 $ propertyName ,
59- // TODO: Use hasInstanceProperty
60- static fn (Type $ type , string $ propertyName ): TrinaryLogic => $ type ->hasProperty ($ propertyName ),
61- // TODO: Use getInstanceProperty
62- static fn (Type $ type , string $ propertyName ): ExtendedPropertyReflection => $ type ->getProperty ($ propertyName , new OutOfClassScope ())
57+ static fn (Type $ type , string $ propertyName ): TrinaryLogic => $ type ->hasInstanceProperty ($ propertyName ),
58+ static fn (Type $ type , string $ propertyName ): ExtendedPropertyReflection => $ type ->getInstanceProperty ($ propertyName , new OutOfClassScope ())
6359 );
6460 if ($ property === null ) {
6561 throw new ShouldNotHappenException ();
@@ -73,10 +69,8 @@ public function hasStaticProperty(ClassReflection $classReflection, string $prop
7369 return $ this ->findProperty (
7470 $ classReflection ,
7571 $ propertyName ,
76- // TODO: Use hasStaticProperty
77- static fn (Type $ type , string $ propertyName ): TrinaryLogic => $ type ->hasProperty ($ propertyName ),
78- // TODO: Use getStaticProperty
79- static fn (Type $ type , string $ propertyName ): ExtendedPropertyReflection => $ type ->getProperty ($ propertyName , new OutOfClassScope ())
72+ static fn (Type $ type , string $ propertyName ): TrinaryLogic => $ type ->hasStaticProperty ($ propertyName ),
73+ static fn (Type $ type , string $ propertyName ): ExtendedPropertyReflection => $ type ->getStaticProperty ($ propertyName , new OutOfClassScope ())
8074 ) !== null ;
8175 }
8276
@@ -85,10 +79,8 @@ public function getStaticProperty(ClassReflection $classReflection, string $prop
8579 $ property = $ this ->findProperty (
8680 $ classReflection ,
8781 $ propertyName ,
88- // TODO: Use hasStaticProperty
89- static fn (Type $ type , string $ propertyName ): TrinaryLogic => $ type ->hasProperty ($ propertyName ),
90- // TODO: Use getStaticProperty
91- static fn (Type $ type , string $ propertyName ): ExtendedPropertyReflection => $ type ->getProperty ($ propertyName , new OutOfClassScope ())
82+ static fn (Type $ type , string $ propertyName ): TrinaryLogic => $ type ->hasStaticProperty ($ propertyName ),
83+ static fn (Type $ type , string $ propertyName ): ExtendedPropertyReflection => $ type ->getStaticProperty ($ propertyName , new OutOfClassScope ())
9284 );
9385 if ($ property === null ) {
9486 throw new ShouldNotHappenException ();
0 commit comments