Conditions | 3 |
Paths | 4 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | private static function exists($class) |
||
26 | { |
||
27 | try { |
||
28 | return class_exists($class) || interface_exists($class); |
||
29 | } catch (\Error $e) { |
||
30 | app(ErrorPrinter::class)->simplePendError($e->getMessage(), $e->getFile(), $e->getLine(), 'error', 'File error'); |
||
31 | |||
32 | return true; |
||
33 | } |
||
34 | } |
||
35 | } |
||
36 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.