Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function notify(FatalThrowableError $error) |
||
19 | { |
||
20 | if (strpos($error->getMessage(), 'Call to undefined method') === false) { |
||
21 | return; |
||
22 | } |
||
23 | |||
24 | $missing = trim(substr($error->getMessage(), strlen('Fatal error: Call to undefined method'))); |
||
25 | list($class, $method) = explode('::', $missing); |
||
26 | |||
27 | $this->exemplifyRunner->runExemplifyCommand($class, substr($method, 0, -2)); |
||
28 | } |
||
29 | } |
||
30 |