1 | <?php |
||
5 | class Incorrect_Syntax_Exception extends \Exception { |
||
6 | |||
7 | static $errors = array(); |
||
|
|||
8 | public static $throw_errors = WP_DEBUG; |
||
9 | |||
10 | /** |
||
11 | * Throw an exception when WP_DEBUG is enabled, and show a friendly admin notice otherwise |
||
12 | */ |
||
13 | static function raise( $message, $code = null ) { |
||
26 | |||
27 | static function print_errors() { |
||
40 | |||
41 | } |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.