Skip to content
Permalink
Browse files

Closes #3739

  • Loading branch information...
sebastianbergmann committed Jun 27, 2019
1 parent 0738d51 commit 2e3c5ea127d1a632bd5af003992d01e9b597ee35
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/Util/ErrorHandler.php
@@ -67,6 +67,15 @@ public function __construct(bool $convertDeprecationsToExceptions, bool $convert
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_USER_NOTICE:

0 comments on commit 2e3c5ea

Please sign in to comment.
You can’t perform that action at this time.