Skip to content

Commit

Permalink
No need to check for empty types
Browse files Browse the repository at this point in the history
  • Loading branch information
Wirone committed Nov 1, 2023
1 parent 1798d94 commit dcdc5c2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/AbstractPhpdocToTypeDeclarationFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,6 @@ protected function getUnionTypes(TypeExpression $typesExpression, bool $isReturn
$containsOtherThanEmptyType = false;

foreach ($types as $type) {
if ('' === $type) {
return null;
}

if ('null' === $type) {
continue;
}
Expand Down

0 comments on commit dcdc5c2

Please sign in to comment.