| 1 | <?php |
||
| 4 | class ExceptionError extends \ErrorException { |
||
| 5 | private $aErrorTypes = array( |
||
| 6 | 1 => 'E_ERROR', |
||
| 7 | 2 => 'E_WARNING', |
||
| 8 | 4 => 'E_PARSE', |
||
| 9 | 8 => 'E_NOTICE', |
||
| 10 | 16 => 'E_CORE_ERROR', |
||
| 11 | 32 => 'E_CORE_WARNING', |
||
| 12 | 64 => 'E_COMPILE_ERROR', |
||
| 13 | 128 => 'E_COMPILE_WARNING', |
||
| 14 | 256 => 'E_USER_ERROR', |
||
| 15 | 512 => 'E_USER_WARNING', |
||
| 16 | 1024 => 'E_USER_NOTICE', |
||
| 17 | 2048 => 'E_STRICT', |
||
| 18 | 4096 => 'E_RECOVERABLE_ERROR', |
||
| 19 | 8192 => 'E_DEPRECATED', |
||
| 20 | 16384 => 'E_USER_DEPRECATED', |
||
| 21 | 32767 => 'E_ALL', |
||
| 22 | ); |
||
| 23 | |||
| 24 | 1 | public function getSeverityString() { |
|
| 27 | |||
| 28 | public static function isValid($e) { |
||
| 31 | } |
||
| 32 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.