| Conditions | 5 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | protected function checkXDebug() |
||
| 44 | { |
||
| 45 | if (extension_loaded('xdebug') && xdebug_is_enabled() && ini_get('xdebug.max_nesting_level') != -1 && ini_get('xdebug.max_nesting_level') < 200) { |
||
| 46 | $errorMessage = 'Please change PHP ini setting "xdebug.max_nesting_level". ' |
||
| 47 | . 'Please change it to a value >= 200. ' |
||
| 48 | . 'Your current value is ' . ini_get('xdebug.max_nesting_level'); |
||
| 49 | throw new \RuntimeException($errorMessage); |
||
| 50 | } |
||
| 51 | } |
||
| 52 | } |
||
| 53 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.