Skip to content

Commit 74712ee

Browse files
Declare parameter types
1 parent 2d9ee25 commit 74712ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/Framework/MockObject/MockObjectTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ public function testWillReturnCallbackWithVariadicVariables(): void
431431
$double = $this->createMock(MethodWIthVariadicVariables::class);
432432
$double->expects($this->once())->method('testVariadic')
433433
->withAnyParameters()
434-
->willReturnCallback(static fn ($string, ...$arguments) => [$string, ...$arguments]);
434+
->willReturnCallback(static fn (string $string, string ...$arguments) => [$string, ...$arguments]);
435435

436436
$testData = ['foo', 'bar', 'biz' => 'kuz'];
437437
$actual = $double->testVariadic(...$testData);

0 commit comments

Comments
 (0)