Skip to content

Commit a09c9df

Browse files
committed
impureMethod expects error
1 parent 978a497 commit a09c9df

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/PHPStan/Rules/Arrays/NonexistentOffsetInArrayDimFetchRuleTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,12 @@ public function testBug14390(): void
12851285
{
12861286
$this->reportPossiblyNonexistentGeneralArrayOffset = true;
12871287

1288-
$this->analyse([__DIR__ . '/data/bug-14390.php'], []);
1288+
$this->analyse([__DIR__ . '/data/bug-14390.php'], [
1289+
[
1290+
'Offset (int|string) might not exist on non-empty-array.',
1291+
135,
1292+
],
1293+
]);
12891294
}
12901295

12911296
}

0 commit comments

Comments
 (0)