Skip to content

Commit f61eb22

Browse files
committed
Fix
1 parent 9761c7f commit f61eb22

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

tests/PHPStan/Rules/Functions/CallToFunctionParametersRuleTest.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2953,7 +2953,18 @@ public function testBug13643(): void
29532953

29542954
public function testBug3842(): void
29552955
{
2956-
$this->analyse([__DIR__ . '/../../Analyser/nsrt/bug-3842.php'], []);
2956+
$this->analyse([__DIR__ . '/../../Analyser/nsrt/bug-3842.php'], [
2957+
[
2958+
'Parameter #1 $values of function Bug3842\check expects array{object|string, string}, array<mixed, mixed>&callable(): mixed given.',
2959+
59,
2960+
'Sealed array shape can only accept a constant array. Extra keys are not allowed.',
2961+
],
2962+
[
2963+
'Parameter #1 $values of function Bug3842\checkClassString expects array{class-string|object, string}, array<mixed, mixed>&callable(): mixed given.',
2964+
60,
2965+
'Sealed array shape can only accept a constant array. Extra keys are not allowed.',
2966+
],
2967+
]);
29572968
}
29582969

29592970
public function testBug11494(): void

0 commit comments

Comments
 (0)