Skip to content

Commit

Permalink
change is_a in CountableTypeAnalyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Mar 19, 2021
1 parent 10cd42f commit fda3572
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private function isCountableObjectType(Type $type): bool

if ($type instanceof ObjectType) {
foreach ($countableObjectTypes as $countableObjectType) {
if (! is_a($type->getClassName(), $countableObjectType->getClassName(), true)) {
if ($countableObjectType->isSuperTypeOf($type)->no()) {
continue;
}

Expand Down

0 comments on commit fda3572

Please sign in to comment.