Skip to content

Commit

Permalink
Remove redundant condition in ParametersAcceptorSelector.
Browse files Browse the repository at this point in the history
  • Loading branch information
mad-briller authored and ondrejmirtes committed Jan 12, 2024
1 parent 3097d10 commit 27e5c57
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Reflection/ParametersAcceptorSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,6 @@ public static function combineAcceptors(array $acceptors): ParametersAcceptorWit

if ($acceptor instanceof ParametersAcceptorWithPhpDocs) {
$phpDocReturnTypes[] = $acceptor->getPhpDocReturnType();
}
if ($acceptor instanceof ParametersAcceptorWithPhpDocs) {
$nativeReturnTypes[] = $acceptor->getNativeReturnType();
}
$isVariadic = $isVariadic || $acceptor->isVariadic();
Expand Down

0 comments on commit 27e5c57

Please sign in to comment.