Skip to content

Commit

Permalink
fix php <=7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Dec 21, 2022
1 parent fb16abc commit 37482dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Type/UnionTypeHelper.php
Expand Up @@ -70,6 +70,10 @@ public static function getConstantStrings(array $types): array
$strings[] = $type->getConstantStrings();
}

if ($strings === []) {
return [];
}

return array_merge(...$strings);
}

Expand Down

0 comments on commit 37482dd

Please sign in to comment.