Skip to content

Commit ef9e8aa

Browse files
committed
simplify test
1 parent a3f2431 commit ef9e8aa

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

tests/PHPStan/Rules/Arrays/NonexistentOffsetInArrayDimFetchRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ public function testBug7000b(): void
411411
$this->analyse([__DIR__ . '/data/bug-7000b.php'], [
412412
[
413413
"Offset 'require'|'require-dev' might not exist on array{require?: array<string, string>, require-dev?: array<string, string>}.",
414-
18,
414+
16,
415415
],
416416
]);
417417
}

tests/PHPStan/Rules/Arrays/data/bug-7000b.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace Bug7000b;
44

5-
use function array_key_exists;
6-
75
class Foo
86
{
97
public function doBar(): void

0 commit comments

Comments
 (0)