Skip to content

Commit

Permalink
Closes #5176
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 7, 2023
1 parent 98db563 commit b97bd15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog-10.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ All notable changes of the PHPUnit 10.0 release series are documented in this fi
### Fixed

* [#5172](https://github.com/sebastianbergmann/phpunit/issues/5172): Test Runner does not display test runner warnings when TestDox result printer is used
* [#5176](https://github.com/sebastianbergmann/phpunit/issues/5176): Silenced `E_DEPRECATED` errors are reported

## [10.0.4] - 2023-02-05

Expand Down
2 changes: 1 addition & 1 deletion src/Util/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __invoke(int $errorNumber, string $errorString, string $errorFil
$suppressed = !($errorNumber & error_reporting());

if ($suppressed &&
in_array($errorNumber, [E_NOTICE, E_STRICT, E_WARNING], true)) {
in_array($errorNumber, [E_DEPRECATED, E_NOTICE, E_STRICT, E_WARNING], true)) {
return false;
}

Expand Down

0 comments on commit b97bd15

Please sign in to comment.