From d6454d6dd71024848893a1e2d1f1dd78683351db Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Tue, 28 Feb 2023 07:43:37 +0100 Subject: [PATCH] Closes #5205 --- ChangeLog-9.6.md | 7 +++++++ src/Util/Test.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog-9.6.md b/ChangeLog-9.6.md index df27bce752d..c0d370b212a 100644 --- a/ChangeLog-9.6.md +++ b/ChangeLog-9.6.md @@ -2,6 +2,12 @@ All notable changes of the PHPUnit 9.6 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles. +## [9.6.5] - 2023-MM-DD + +### Fixed + +* [#5205](https://github.com/sebastianbergmann/phpunit/issues/5205): Wrong default value for optional parameter of `PHPUnit\Util\Test::parseTestMethodAnnotations()` causes `ReflectionException` + ## [9.6.4] - 2023-02-27 ### Fixed @@ -36,6 +42,7 @@ All notable changes of the PHPUnit 9.6 release series are documented in this fil * [#5064](https://github.com/sebastianbergmann/phpunit/issues/5064): Deprecate `PHPUnit\Framework\TestCase::getMockClass()` * [#5132](https://github.com/sebastianbergmann/phpunit/issues/5132): Deprecate `Test` suffix for abstract test case classes +[9.6.5]: https://github.com/sebastianbergmann/phpunit/compare/9.6.4...9.6 [9.6.4]: https://github.com/sebastianbergmann/phpunit/compare/9.6.3...9.6.4 [9.6.3]: https://github.com/sebastianbergmann/phpunit/compare/9.6.2...9.6.3 [9.6.2]: https://github.com/sebastianbergmann/phpunit/compare/9.6.1...9.6.2 diff --git a/src/Util/Test.php b/src/Util/Test.php index f089f6d43a5..d04a7683b2e 100644 --- a/src/Util/Test.php +++ b/src/Util/Test.php @@ -331,7 +331,7 @@ public static function getProvidedData(string $className, string $methodName): ? /** * @psalm-param class-string $className */ - public static function parseTestMethodAnnotations(string $className, ?string $methodName = ''): array + public static function parseTestMethodAnnotations(string $className, ?string $methodName = null): array { $registry = Registry::getInstance();