| 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 | public function __construct( |
||
| 46 | |||
| 47 | public function getType() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritdoc} |
||
| 54 | */ |
||
| 55 | 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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.