Skip to content

Commit e20a0cc

Browse files
committed
fixup! Ignore negative keys on checking whether a ConstantArray is a list
1 parent 800641c commit e20a0cc

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

phpstan-baseline.neon

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,13 @@ parameters:
933933
-
934934
message: '#^PHPDoc tag @var with type float\|int is not subtype of native type int\.$#'
935935
identifier: varTag.nativeType
936-
count: 2
936+
count: 1
937+
path: src/Type/Constant/ConstantArrayTypeBuilder.php
938+
939+
-
940+
message: '#^PHPDoc tag @var with type float\|int is not subtype of native type int\<1, max\>\.$#'
941+
identifier: varTag.nativeType
942+
count: 1
937943
path: src/Type/Constant/ConstantArrayTypeBuilder.php
938944

939945
-

tests/PHPStan/Rules/PhpDoc/VarTagChangedExpressionTypeRuleTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,5 @@ public function testBug12708(): void
9999
],
100100
]);
101101
}
102+
102103
}

0 commit comments

Comments
 (0)