Skip to content

Commit 3639e4f

Browse files
committed
Fix test
1 parent 0827462 commit 3639e4f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/PHPStan/Rules/Functions/ArrayValuesRuleTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ public function testFile(): void
7373
28,
7474
$tipText,
7575
];
76+
} else {
77+
$expectedErrors[] = [
78+
'Parameter #1 $array (true) to function array_values is empty, call has no effect.',
79+
27,
80+
];
81+
$expectedErrors[] = [
82+
'Parameter #1 $array (true) to function array_values is empty, call has no effect.',
83+
28,
84+
];
7685
}
7786

7887
$this->analyse([__DIR__ . '/data/array_values_list.php'], $expectedErrors);

0 commit comments

Comments
 (0)