Skip to content

Commit 51e622f

Browse files
committed
fix expectations
1 parent e07ded6 commit 51e622f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/PHPStan/Rules/Arrays/NonexistentOffsetInArrayDimFetchRuleTest.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,16 @@ public function testBug12406b(): void
860860
{
861861
$this->reportPossiblyNonexistentGeneralArrayOffset = true;
862862

863-
$this->analyse([__DIR__ . '/data/bug-12406b.php'], []);
863+
$this->analyse([__DIR__ . '/data/bug-12406b.php'], [
864+
[
865+
'Offset int<0, max> might not exist on non-empty-list<array{0: string, 1: non-empty-string, 2: non-falsy-string, 3: numeric-string, 4?: numeric-string, 5?: numeric-string}>.',
866+
22
867+
],
868+
[
869+
'Offset int<0, max> might not exist on non-empty-list<array{0: string, 1: non-empty-string, 2: non-falsy-string, 3: numeric-string, 4?: numeric-string, 5?: numeric-string}>.',
870+
23
871+
],
872+
]);
864873
}
865874

866875
public function testBug11679(): void

0 commit comments

Comments
 (0)