Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 813842f

Browse files
committed
Merge pull request #45 from johngrafis/patch-1
Update Runner.php
2 parents b855b48 + 9c7c98e commit 813842f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ZendDiagnostics/Runner/Runner.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,9 @@ protected function startErrorHandler()
395395

396396
public function errorHandler($errno, $errstr = '', $errfile = '', $errline = 0)
397397
{
398-
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
398+
if (error_reporting() !== 0) {
399+
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
400+
}
399401
}
400402

401403
protected function stopErrorHandler()

0 commit comments

Comments
 (0)