Skip to content

Commit 3263f4c

Browse files
Declare TestCase::__construct() to be final
1 parent 4f9457e commit 3263f4c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ChangeLog-12.0.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes of the PHPUnit 12.0 release series are documented in this fi
44

55
## [12.0.3] - 2025-MM-DD
66

7+
### Changed
8+
9+
* `TestCase::__construct()` is now declared `final` (it was annotated with `@final` before and the announced changed from `@final` to `final` for PHPUnit 12 was forgotten)
10+
711
### Fixed
812

913
* [#5951](https://github.com/sebastianbergmann/phpunit/issues/5951#issuecomment-2656364815): Restore the `includeUncoveredFiles` configuration option

src/Framework/TestCase.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,8 @@ abstract class TestCase extends Assert implements Reorderable, SelfDescribing, T
202202
* @param non-empty-string $name
203203
*
204204
* @internal This method is not covered by the backward compatibility promise for PHPUnit
205-
*
206-
* @final
207205
*/
208-
public function __construct(string $name)
206+
final public function __construct(string $name)
209207
{
210208
$this->methodName = $name;
211209
$this->status = TestStatus::unknown();

0 commit comments

Comments
 (0)