| 1 | <?php |
||
| 7 | class KernelEvent extends Event |
||
| 8 | { |
||
| 9 | /** @var Kernel */ |
||
| 10 | private $kernel; |
||
| 11 | /** @var string */ |
||
| 12 | private $name; |
||
| 13 | |||
| 14 | /** |
||
| 15 | 4 | * @param Kernel $kernel |
|
| 16 | * @param string $name |
||
|
|
|||
| 17 | 4 | */ |
|
| 18 | 4 | public function __construct(Kernel $kernel) |
|
| 22 | |||
| 23 | 1 | /** |
|
| 24 | * @return Kernel |
||
| 25 | 1 | */ |
|
| 26 | public function getKernel() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $name |
||
| 33 | */ |
||
| 34 | public function setName($name) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function getName() |
||
| 46 | } |
||
| 47 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.