@@ -226,7 +226,7 @@ public function getUnresolvedPropertyPrototype(string $propertyName, ClassMember
226226 }
227227
228228 $ property = RecursionGuard::run ($ this , static fn () => $ nakedClassReflection ->getProperty ($ propertyName , $ scope ));
229- if ($ property instanceof ErrorType ) {
229+ if ($ property-> isError ()-> yes () ) {
230230 $ property = new DummyPropertyReflection ($ propertyName );
231231
232232 return new CallbackUnresolvedPropertyPrototypeReflection (
@@ -332,7 +332,7 @@ public function getUnresolvedInstancePropertyPrototype(string $propertyName, Cla
332332 }
333333
334334 $ property = RecursionGuard::run ($ this , static fn () => $ nakedClassReflection ->getInstanceProperty ($ propertyName , $ scope ));
335- if ($ property instanceof ErrorType ) {
335+ if (! $ property instanceof ExtendedPropertyReflection ) {
336336 $ property = new DummyPropertyReflection ($ propertyName );
337337
338338 return new CallbackUnresolvedPropertyPrototypeReflection (
@@ -414,7 +414,7 @@ public function getUnresolvedStaticPropertyPrototype(string $propertyName, Class
414414 }
415415
416416 $ property = RecursionGuard::run ($ this , static fn () => $ nakedClassReflection ->getStaticProperty ($ propertyName ));
417- if ($ property instanceof ErrorType ) {
417+ if (! $ property instanceof ExtendedPropertyReflection ) {
418418 $ property = new DummyPropertyReflection ($ propertyName );
419419
420420 return new CallbackUnresolvedPropertyPrototypeReflection (
@@ -1548,7 +1548,7 @@ public function isCallable(): TrinaryLogic
15481548 if ($ parametersAcceptors === null ) {
15491549 return TrinaryLogic::createNo ();
15501550 }
1551- if ($ parametersAcceptors instanceof ErrorType ) {
1551+ if (! is_array ( $ parametersAcceptors) ) {
15521552 return TrinaryLogic::createNo ();
15531553 }
15541554
0 commit comments