1 | <?php |
||
26 | class SimpleAction extends AbstractAction |
||
27 | { |
||
28 | /** |
||
29 | * @param mixed $id |
||
|
|||
30 | * @param CustomerInterface $customer |
||
31 | * @param TargetInterface $target |
||
32 | * @param QuantityInterface $quantity |
||
33 | * @param DateTime $time |
||
34 | * @param TypeInterface $type |
||
35 | */ |
||
36 | 2 | public function __construct( |
|
46 | |||
47 | 2 | public function getType() |
|
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | 2 | public function isApplicable(PriceInterface $price) |
|
60 | } |
||
61 |
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.