Skip to content

Commit 5ef62df

Browse files
committed
ConstantArrayType: fix returned ConstantArrayTypeAndMethod
1 parent 562b730 commit 5ef62df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/Type/Constant/ConstantArrayType.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ public function findTypeAndMethodName(): ?ConstantArrayTypeAndMethod
546546
$has = $has->and(TrinaryLogic::createMaybe());
547547
}
548548

549-
return ConstantArrayTypeAndMethod::createConcrete($type, $method->getValue(), $has);
549+
return ConstantArrayTypeAndMethod::createConcrete($classOrObject, $method->getValue(), $has);
550550
}
551551

552552
return null;
@@ -593,7 +593,7 @@ public function findTypeAndMethodNames(): array
593593
$has = $has->and(TrinaryLogic::createMaybe());
594594
}
595595

596-
$typeAndMethods[] = ConstantArrayTypeAndMethod::createConcrete($type, $method->getValue(), $has);
596+
$typeAndMethods[] = ConstantArrayTypeAndMethod::createConcrete($classOrObject, $method->getValue(), $has);
597597
}
598598

599599
return $typeAndMethods;

0 commit comments

Comments
 (0)