Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 5617a05

Browse files
authored
Merge pull request #3 from sfgeorge/feature/DTPORTAL-2922-log-warnings
DTPORTAL-2922 log warnings part 2 of 4: fix shutdown handler
2 parents 4058d47 + 0b08470 commit 5617a05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ErrorHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public function onShutdown()
6464
if ($error === null) {
6565
return;
6666
}
67-
if ($error['type'] & error_reporting() === 0) {
68-
return;
67+
if (($error['type'] & \error_reporting()) === 0) {
68+
return;
6969
}
7070
$exc = new Errors\Fatal($error['message'], $error['file'], $error['line'], $trace = array(), $error['type']);
7171
$this->notifier->notify($exc);

0 commit comments

Comments
 (0)