Skip to content

Commit b9dd1c6

Browse files
Mark PHPUnit\Framework\TestCase::__construct() as final
1 parent 7877003 commit b9dd1c6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ChangeLog-11.1.md

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

1919
* [#5689](https://github.com/sebastianbergmann/phpunit/issues/5689): The XML configuration file generated using `--generate-configuration` now generates `<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">` instead of `<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">`
2020
* [#5708](https://github.com/sebastianbergmann/phpunit/issues/5708): Allow the `--group`, `--exclude-group`, `--covers`, `--uses`, and `--test-suffix` CLI options to be used multiple times
21+
* `PHPUnit\Framework\TestCase::__construct()` is now annotated to be final in preparation for declaring it `final` in PHPUnit 12
2122
* Changed how the `DeprecationTriggered`, `ErrorTriggered`, `NoticeTriggered`, `PhpDeprecationTriggered`, `PhpNoticeTriggered`, `PhpWarningTriggered`, and `WarningTriggered` events are represented as text
2223

2324
### Deprecated

src/Framework/TestCase.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ abstract class TestCase extends Assert implements Reorderable, SelfDescribing, T
220220
* @psalm-param non-empty-string $name
221221
*
222222
* @internal This method is not covered by the backward compatibility promise for PHPUnit
223+
*
224+
* @final
223225
*/
224226
public function __construct(string $name)
225227
{

0 commit comments

Comments
 (0)