1 | <?php |
||
22 | class SimpleAction extends AbstractAction |
||
23 | { |
||
24 | /** |
||
25 | * @param mixed $id |
||
|
|||
26 | * @param CustomerInterface $customer |
||
27 | * @param TargetInterface $target |
||
28 | * @param QuantityInterface $quantity |
||
29 | * @param DateTime $time |
||
30 | * @param TypeInterface $type |
||
31 | */ |
||
32 | public function __construct( |
||
42 | |||
43 | public function getType() |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function isApplicable(PriceInterface $price) |
||
56 | } |
||
57 |
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.