Skip to content

Commit dd5e896

Browse files
Check against literal 2048 value instead of against E_STRICT for #5956
1 parent 58e373a commit dd5e896

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Util/ErrorHandler.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
use const E_DEPRECATED;
1313
use const E_NOTICE;
14-
use const E_STRICT;
1514
use const E_USER_DEPRECATED;
1615
use const E_USER_NOTICE;
1716
use const E_USER_WARNING;
@@ -99,7 +98,7 @@ public function __invoke(int $errorNumber, string $errorString, string $errorFil
9998
*
10099
* @see https://github.com/sebastianbergmann/phpunit/issues/5956
101100
*/
102-
if (defined('E_STRICT') && $errorNumber === @E_STRICT) {
101+
if (defined('E_STRICT') && $errorNumber === 2048) {
103102
$errorNumber = E_NOTICE;
104103
}
105104

0 commit comments

Comments
 (0)