Skip to content

Commit

Permalink
Mark PHPUnit\Framework\TestCase::__construct() as final
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Mar 30, 2024
1 parent 7877003 commit b9dd1c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog-11.1.md
Expand Up @@ -18,6 +18,7 @@ All notable changes of the PHPUnit 11.1 release series are documented in this fi

* [#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">`
* [#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
* `PHPUnit\Framework\TestCase::__construct()` is now annotated to be final in preparation for declaring it `final` in PHPUnit 12
* Changed how the `DeprecationTriggered`, `ErrorTriggered`, `NoticeTriggered`, `PhpDeprecationTriggered`, `PhpNoticeTriggered`, `PhpWarningTriggered`, and `WarningTriggered` events are represented as text

### Deprecated
Expand Down
2 changes: 2 additions & 0 deletions src/Framework/TestCase.php
Expand Up @@ -220,6 +220,8 @@ abstract class TestCase extends Assert implements Reorderable, SelfDescribing, T
* @psalm-param non-empty-string $name
*
* @internal This method is not covered by the backward compatibility promise for PHPUnit
*
* @final
*/
public function __construct(string $name)
{
Expand Down

0 comments on commit b9dd1c6

Please sign in to comment.