| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public static function handle($level, $message, $file, $line) |
||
| 34 | { |
||
| 35 | // respect error_reporting being disabled |
||
| 36 | if (0 === error_reporting()) { |
||
| 37 | return; |
||
| 38 | } |
||
| 39 | |||
| 40 | if (ini_get('xdebug.scream')) { |
||
| 41 | $message .= "\n\nWarning: You have xdebug.scream enabled, the warning above may be" . |
||
| 42 | "\na legitimately suppressed error that you were not supposed to see."; |
||
| 43 | } |
||
| 44 | |||
| 45 | throw new ErrorException($message, 0, $level, $file, $line); |
||
| 46 | } |
||
| 47 | |||
| 58 |