| 1 | <?php |
||
| 7 | class PreCheckPhp extends AbstractSubCommand |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Check PHP environment against minimal required settings modules |
||
| 11 | * |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | public function execute() |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @return array |
||
|
|
|||
| 22 | */ |
||
| 23 | protected function checkExtensions() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @throws \RuntimeException |
||
| 42 | */ |
||
| 43 | protected function checkXDebug() |
||
| 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.