| 1 | <?php |
||
| 9 | abstract class AbstractCart |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @param ItemInterface $item |
||
| 13 | */ |
||
| 14 | abstract public function add(ItemInterface $item); |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param ItemInterface $item |
||
| 18 | */ |
||
| 19 | abstract public function remove(ItemInterface $item); |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @return array |
||
| 23 | */ |
||
| 24 | abstract public function clear(); |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return array |
||
| 28 | */ |
||
| 29 | abstract public function all(); |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return \ArrayIterator |
||
| 33 | */ |
||
| 34 | abstract public function count(); |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param array $total |
||
|
|
|||
| 38 | */ |
||
| 39 | abstract public function emptycart(); |
||
| 40 | } |
||
| 41 |
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.