1 | <?php |
||
20 | class ErrorHandler |
||
|
|||
21 | { |
||
22 | /** |
||
23 | * States that the current object is the current error handler |
||
24 | * @var bool |
||
25 | */ |
||
26 | protected static $isHandledLocal = false; |
||
27 | |||
28 | /** |
||
29 | * @param int|null $level The error level to be handled |
||
30 | */ |
||
31 | 4 | public static function convertErrorsToExceptions(int $level = null) |
|
41 | |||
42 | /** |
||
43 | * Restore predefined error handlers |
||
44 | */ |
||
45 | 3 | public static function restoreErrorHandler() |
|
51 | } |
||
52 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.