Skip to content

Commit

Permalink
[DowngradePhp71] Using exact same type on PhpDocFromTypeDeclarationDe…
Browse files Browse the repository at this point in the history
…corator::isMatchingType() (#772)
  • Loading branch information
samsonasik committed Aug 26, 2021
1 parent 25ac38e commit c254054
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,6 @@ private function moveParamTypeToParamDoc(
*/
private function isMatchingType(Type $type, array $requiredTypes): bool
{
foreach ($requiredTypes as $requiredType) {
if (is_a($type, $requiredType, true)) {
return true;
}
}

return false;
return in_array($type::class, $requiredTypes, true);
}
}

0 comments on commit c254054

Please sign in to comment.