1 | <?php |
||
17 | class CurrencyContextHandler |
||
18 | { |
||
19 | private $context; |
||
20 | |||
21 | /** |
||
22 | * Construct. |
||
23 | * |
||
24 | * @param CurrencyConverter $converter |
||
|
|||
25 | */ |
||
26 | public function __construct(CurrencyContextInterface $context) |
||
30 | |||
31 | public function serializeToJson(JsonSerializationVisitor $visitor, $object, $type) |
||
35 | } |
||
36 |
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.