Skip to content

Commit 58118c9

Browse files
committed
Update TypeCombinatorTest.php
1 parent d1ae068 commit 58118c9

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

tests/PHPStan/Type/TypeCombinatorTest.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5158,6 +5158,30 @@ public static function dataRemove(): array
51585158
UnionType::class,
51595159
'array<string>|ArrayObject',
51605160
],
5161+
[
5162+
new IntersectionType([
5163+
new StringType(),
5164+
new AccessoryNumericStringType(),
5165+
]),
5166+
new IntersectionType([
5167+
new StringType(),
5168+
new AccessoryDecimalIntegerStringType(),
5169+
]),
5170+
IntersectionType::class,
5171+
'numeric-string'
5172+
],
5173+
[
5174+
new IntersectionType([
5175+
new StringType(),
5176+
new AccessoryDecimalIntegerStringType(),
5177+
]),
5178+
new IntersectionType([
5179+
new StringType(),
5180+
new AccessoryNumericStringType(),
5181+
]),
5182+
NeverType::class,
5183+
'*NEVER*=implicit'
5184+
],
51615185
[
51625186
new ConstantBooleanType(true),
51635187
new ConstantBooleanType(false),

0 commit comments

Comments
 (0)