| 1 | <?php |
||
| 14 | class Directive extends AbstractAst |
||
| 15 | { |
||
| 16 | use AstArgumentsTrait; |
||
| 17 | |||
| 18 | /** @var string */ |
||
| 19 | private $name; |
||
| 20 | |||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $name |
||
| 24 | * @param ValueInterface $value |
||
|
|
|||
| 25 | * @param Location $location |
||
| 26 | */ |
||
| 27 | public function __construct($name, array $arguments, Location $location) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return mixed |
||
| 37 | */ |
||
| 38 | public function getName() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param mixed $name |
||
| 45 | */ |
||
| 46 | public function setName($name) |
||
| 50 | |||
| 51 | } |
||
| 52 |
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.