We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30c164c commit e123cd9Copy full SHA for e123cd9
src/Runner/ErrorHandler.php
@@ -168,9 +168,9 @@ public function enable(): void
168
169
set_error_handler($this);
170
171
- $this->enabled = true;
172
-
+ $this->enabled = true;
173
$this->originalErrorReportingLevel = error_reporting();
+
174
error_reporting($this->originalErrorReportingLevel & self::UNHANDLEABLE_LEVELS);
175
}
176
@@ -182,9 +182,9 @@ public function disable(): void
182
183
restore_error_handler();
184
185
- $this->enabled = false;
186
187
error_reporting(error_reporting() | $this->originalErrorReportingLevel);
+ $this->enabled = false;
188
$this->originalErrorReportingLevel = null;
189
190
0 commit comments