|
13 | 13 | abstract class CoreErrorLogger implements ErrorLogger |
14 | 14 | { |
15 | 15 | //-------------------------------------------------------------------------------------------------------------------- |
16 | | - protected static $errorNames = [E_COMPILE_ERROR => 'PHP Compile Error', |
17 | | - E_COMPILE_WARNING => 'PHP Compile Warning', |
18 | | - E_CORE_ERROR => 'PHP Core Error', |
19 | | - E_CORE_WARNING => 'PHP Core Warning', |
20 | | - E_DEPRECATED => 'PHP Deprecated Warning', |
21 | | - E_ERROR => 'PHP Fatal Error', |
22 | | - E_NOTICE => 'PHP Notice', |
23 | | - E_PARSE => 'PHP Parse Error', |
24 | | - E_RECOVERABLE_ERROR => 'PHP Recoverable Error', |
25 | | - E_STRICT => 'PHP Strict Warning', |
26 | | - E_USER_DEPRECATED => 'PHP User Deprecated Warning', |
27 | | - E_USER_ERROR => 'PHP User Error', |
28 | | - E_USER_NOTICE => 'PHP User Notice', |
29 | | - E_USER_WARNING => 'PHP User Warning', |
30 | | - E_WARNING => 'PHP Warning']; |
| 16 | + protected static array $errorNames = [E_COMPILE_ERROR => 'PHP Compile Error', |
| 17 | + E_COMPILE_WARNING => 'PHP Compile Warning', |
| 18 | + E_CORE_ERROR => 'PHP Core Error', |
| 19 | + E_CORE_WARNING => 'PHP Core Warning', |
| 20 | + E_DEPRECATED => 'PHP Deprecated Warning', |
| 21 | + E_ERROR => 'PHP Fatal Error', |
| 22 | + E_NOTICE => 'PHP Notice', |
| 23 | + E_PARSE => 'PHP Parse Error', |
| 24 | + E_RECOVERABLE_ERROR => 'PHP Recoverable Error', |
| 25 | + E_STRICT => 'PHP Strict Warning', |
| 26 | + E_USER_DEPRECATED => 'PHP User Deprecated Warning', |
| 27 | + E_USER_ERROR => 'PHP User Error', |
| 28 | + E_USER_NOTICE => 'PHP User Notice', |
| 29 | + E_USER_WARNING => 'PHP User Warning', |
| 30 | + E_WARNING => 'PHP Warning']; |
31 | 31 |
|
32 | 32 | /** |
33 | 33 | * The output handle. |
@@ -58,6 +58,7 @@ abstract class CoreErrorLogger implements ErrorLogger |
58 | 58 | private $scalarReferences; |
59 | 59 |
|
60 | 60 | //-------------------------------------------------------------------------------------------------------------------- |
| 61 | + |
61 | 62 | /** |
62 | 63 | * Main function for dumping. |
63 | 64 | * |
@@ -213,8 +214,8 @@ private function argumentsToString(array $args): string |
213 | 214 | $count++; |
214 | 215 | if ($count>=7) |
215 | 216 | { |
216 | | - $out[$key] = '...'; |
217 | | - break; |
| 217 | + $out[$key] = '...'; |
| 218 | + break; |
218 | 219 | } |
219 | 220 |
|
220 | 221 | if (is_object($value)) |
|
0 commit comments