We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46b9819 commit 0a004e8Copy full SHA for 0a004e8
src/Type/Constant/ConstantArrayType.php
@@ -483,6 +483,7 @@ public function getCallableParametersAcceptors(ClassMemberAccessAnswerer $scope)
483
}
484
485
$method = $typeAndMethodName->getType()
486
+ ->getObjectTypeOrClassStringObjectType()
487
->getMethod($typeAndMethodName->getMethod(), $scope);
488
489
if (!$scope->canCallMethod($method)) {
@@ -567,7 +568,7 @@ public function findTypeAndMethodNames(): array
567
568
$has = $has->and(TrinaryLogic::createMaybe());
569
570
- $typeAndMethods[] = ConstantArrayTypeAndMethod::createConcrete($type, $method->getValue(), $has);
571
+ $typeAndMethods[] = ConstantArrayTypeAndMethod::createConcrete($classOrObject, $method->getValue(), $has);
572
573
574
return $typeAndMethods;
0 commit comments