Skip to content

Commit

Permalink
One more..
Browse files Browse the repository at this point in the history
  • Loading branch information
herndlm committed Mar 3, 2023
1 parent 844ad34 commit 9d76dfa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/PHPStan/Type/TypeCombinatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,14 @@ public function dataUnion(): iterable
UnionType::class,
'(1|2)|string',
],
[
[
new BenevolentUnionType([new ConstantStringType('1'), new ConstantStringType('2')]),
new StringType(),
],
StringType::class,
'string',
],
[
[
new BenevolentUnionType([new ConstantIntegerType(1), new ConstantIntegerType(2), new ConstantIntegerType(3)]),
Expand Down

0 comments on commit 9d76dfa

Please sign in to comment.