|
57 | 57 | use function count; |
58 | 58 | use function implode; |
59 | 59 | use function in_array; |
| 60 | +use function is_array; |
60 | 61 | use function sprintf; |
61 | 62 | use function strtolower; |
62 | 63 |
|
@@ -226,7 +227,7 @@ public function getUnresolvedPropertyPrototype(string $propertyName, ClassMember |
226 | 227 | } |
227 | 228 |
|
228 | 229 | $property = RecursionGuard::run($this, static fn () => $nakedClassReflection->getProperty($propertyName, $scope)); |
229 | | - if ($property instanceof ErrorType) { |
| 230 | + if (!$property instanceof ExtendedPropertyReflection) { |
230 | 231 | $property = new DummyPropertyReflection($propertyName); |
231 | 232 |
|
232 | 233 | return new CallbackUnresolvedPropertyPrototypeReflection( |
@@ -332,7 +333,7 @@ public function getUnresolvedInstancePropertyPrototype(string $propertyName, Cla |
332 | 333 | } |
333 | 334 |
|
334 | 335 | $property = RecursionGuard::run($this, static fn () => $nakedClassReflection->getInstanceProperty($propertyName, $scope)); |
335 | | - if ($property instanceof ErrorType) { |
| 336 | + if (! $property instanceof ExtendedPropertyReflection) { |
336 | 337 | $property = new DummyPropertyReflection($propertyName); |
337 | 338 |
|
338 | 339 | return new CallbackUnresolvedPropertyPrototypeReflection( |
@@ -414,7 +415,7 @@ public function getUnresolvedStaticPropertyPrototype(string $propertyName, Class |
414 | 415 | } |
415 | 416 |
|
416 | 417 | $property = RecursionGuard::run($this, static fn () => $nakedClassReflection->getStaticProperty($propertyName)); |
417 | | - if ($property instanceof ErrorType) { |
| 418 | + if (!$property instanceof ExtendedPropertyReflection) { |
418 | 419 | $property = new DummyPropertyReflection($propertyName); |
419 | 420 |
|
420 | 421 | return new CallbackUnresolvedPropertyPrototypeReflection( |
@@ -1548,7 +1549,7 @@ public function isCallable(): TrinaryLogic |
1548 | 1549 | if ($parametersAcceptors === null) { |
1549 | 1550 | return TrinaryLogic::createNo(); |
1550 | 1551 | } |
1551 | | - if ($parametersAcceptors instanceof ErrorType) { |
| 1552 | + if (! is_array($parametersAcceptors)) { |
1552 | 1553 | return TrinaryLogic::createNo(); |
1553 | 1554 | } |
1554 | 1555 |
|
|
0 commit comments