Skip to content

Commit f1e3e2c

Browse files
Backport fix for #6163
1 parent 78a8e65 commit f1e3e2c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ChangeLog-11.5.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ All notable changes of the PHPUnit 11.5 release series are documented in this fi
77
### Fixed
88

99
* [#6104](https://github.com/sebastianbergmann/phpunit/issues/6104): Test with dependencies and data provider fails
10+
* [#6163](https://github.com/sebastianbergmann/phpunit/issues/6163): `@no-named-arguments` leads to static analysis errors for variadic arguments
1011

1112
## [11.5.25] - 2025-06-27
1213

src/Framework/MockObject/Runtime/Builder/ParametersMatch.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
namespace PHPUnit\Framework\MockObject\Builder;
1111

1212
/**
13-
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
14-
*
1513
* @internal This class is not covered by the backward compatibility promise for PHPUnit
1614
*/
1715
interface ParametersMatch extends Stub
@@ -46,6 +44,8 @@ public function with(mixed ...$arguments): self;
4644
* // match any number of parameters
4745
* $b->withAnyParameters();
4846
* </code>
47+
*
48+
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
4949
*/
5050
public function withAnyParameters(): self;
5151
}

0 commit comments

Comments
 (0)