We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d9ee25 commit 74712eeCopy full SHA for 74712ee
tests/unit/Framework/MockObject/MockObjectTest.php
@@ -431,7 +431,7 @@ public function testWillReturnCallbackWithVariadicVariables(): void
431
$double = $this->createMock(MethodWIthVariadicVariables::class);
432
$double->expects($this->once())->method('testVariadic')
433
->withAnyParameters()
434
- ->willReturnCallback(static fn ($string, ...$arguments) => [$string, ...$arguments]);
+ ->willReturnCallback(static fn (string $string, string ...$arguments) => [$string, ...$arguments]);
435
436
$testData = ['foo', 'bar', 'biz' => 'kuz'];
437
$actual = $double->testVariadic(...$testData);
0 commit comments