Skip to content

Commit

Permalink
Remove code that is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Aug 27, 2022
1 parent 85b0d75 commit 7c25301
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Util/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use const E_USER_WARNING;
use const E_WARNING;
use function debug_backtrace;
use function error_reporting;
use function restore_error_handler;
use function set_error_handler;
use PHPUnit\Event;
Expand All @@ -42,15 +41,6 @@ public static function instance(): self
*/
public function __invoke(int $errorNumber, string $errorString, string $errorFile, int $errorLine): bool
{
/*
* Do not raise an exception when the error suppression operator (@) was used.
*
* @see https://github.com/sebastianbergmann/phpunit/issues/3739
*/
if (!($errorNumber & error_reporting())) {
return false;
}

switch ($errorNumber) {
case E_NOTICE:
case E_STRICT:
Expand Down

0 comments on commit 7c25301

Please sign in to comment.