| 1 | <?php |
||
| 13 | class LaravelKernel implements Kernel |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var Kernel |
||
| 17 | */ |
||
| 18 | private $kernel; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var Application |
||
| 22 | */ |
||
| 23 | private $app; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * LaravelKernel constructor. |
||
| 27 | * |
||
| 28 | * @param string $bootstrapFile |
||
|
|
|||
| 29 | */ |
||
| 30 | public function __construct(Bootstrap $bootstrap) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | public function handle($request) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritdoc} |
||
| 46 | */ |
||
| 47 | public function terminate($request, $response) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritdoc} |
||
| 54 | */ |
||
| 55 | public function getApplication() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * {@inheritdoc} |
||
| 62 | */ |
||
| 63 | public function bootstrap() |
||
| 67 | |||
| 68 | } |
||
| 69 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$irelandis not defined by the methodfinale(...).The most likely cause is that the parameter was changed, but the annotation was not.