From 70d77ae6d979b5be56910efd603f52c642978a95 Mon Sep 17 00:00:00 2001 From: Martin Herndl Date: Sun, 8 Jan 2023 22:12:33 +0100 Subject: [PATCH] One more.. --- tests/PHPStan/Type/TypeCombinatorTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/PHPStan/Type/TypeCombinatorTest.php b/tests/PHPStan/Type/TypeCombinatorTest.php index 84e3c7f3976..31e3c8f03a8 100644 --- a/tests/PHPStan/Type/TypeCombinatorTest.php +++ b/tests/PHPStan/Type/TypeCombinatorTest.php @@ -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)]),