| 1 | <?php |
||
| 13 | class SfKernelLoggerSubscriber implements EventSubscriberInterface |
||
| 14 | { |
||
| 15 | /** @var SfKernelEventLogger */ |
||
| 16 | private $sfKernelEventLogger; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param Kernel $kernel |
||
|
|
|||
| 20 | */ |
||
| 21 | 2 | public function __construct(SfKernelEventLogger $sfKernelEventLogger) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | 1 | public static function getSubscribedEvents() |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @param KernelEvent $event |
||
| 38 | */ |
||
| 39 | 1 | public function initSfKernelLogger(KernelEvent $event) |
|
| 46 | } |
||
| 47 |
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.