Skip to content

Commit 97c2ad3

Browse files
Merge branch '11.5' into 12.1
2 parents 1abbdc5 + bd35a11 commit 97c2ad3

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

ChangeLog-12.1.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes of the PHPUnit 12.1 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
44

5+
## [12.1.5] - 2025-MM-DD
6+
7+
### Fixed
8+
9+
* [#6199](https://github.com/sebastianbergmann/phpunit/issues/6199): `assertEmpty()` and `assertNotEmpty()` use overly restrictive `phpstan-assert empty` directives
10+
511
## [12.1.4] - 2025-05-02
612

713
### Added
@@ -60,6 +66,7 @@ All notable changes of the PHPUnit 12.1 release series are documented in this fi
6066

6167
* [#6140](https://github.com/sebastianbergmann/phpunit/issues/6140): The `testClassName()` method on the `AfterTestMethodCalled`, `AfterTestMethodErrored`, `AfterTestMethodFinished`, `BeforeTestMethodCalled`, `BeforeTestMethodErrored`, `BeforeTestMethodFinished`, `PostConditionCalled`, `PostConditionErrored`, `PostConditionFinished`, `PreConditionCalled`, `PreConditionErrored`, and `PreConditionFinished` event value objects (use `test()->className()` instead)
6268

69+
[12.1.5]: https://github.com/sebastianbergmann/phpunit/compare/12.1.4...12.1
6370
[12.1.4]: https://github.com/sebastianbergmann/phpunit/compare/12.1.3...12.1.4
6471
[12.1.3]: https://github.com/sebastianbergmann/phpunit/compare/12.1.2...12.1.3
6572
[12.1.2]: https://github.com/sebastianbergmann/phpunit/compare/12.1.1...12.1.2

src/Framework/Assert.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,8 +1150,6 @@ final public static function assertObjectNotEquals(object $expected, object $act
11501150
*
11511151
* @throws ExpectationFailedException
11521152
* @throws GeneratorNotSupportedException
1153-
*
1154-
* @phpstan-assert empty $actual
11551153
*/
11561154
final public static function assertEmpty(mixed $actual, string $message = ''): void
11571155
{
@@ -1167,8 +1165,6 @@ final public static function assertEmpty(mixed $actual, string $message = ''): v
11671165
*
11681166
* @throws ExpectationFailedException
11691167
* @throws GeneratorNotSupportedException
1170-
*
1171-
* @phpstan-assert !empty $actual
11721168
*/
11731169
final public static function assertNotEmpty(mixed $actual, string $message = ''): void
11741170
{

src/Framework/Assert/Functions.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,8 +1056,6 @@ function assertObjectNotEquals(object $expected, object $actual, string $method
10561056
* @throws ExpectationFailedException
10571057
* @throws GeneratorNotSupportedException
10581058
*
1059-
* @phpstan-assert empty $actual
1060-
*
10611059
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
10621060
*
10631061
* @see Assert::assertEmpty
@@ -1075,8 +1073,6 @@ function assertEmpty(mixed $actual, string $message = ''): void
10751073
* @throws ExpectationFailedException
10761074
* @throws GeneratorNotSupportedException
10771075
*
1078-
* @phpstan-assert !empty $actual
1079-
*
10801076
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
10811077
*
10821078
* @see Assert::assertNotEmpty

0 commit comments

Comments
 (0)