1 | <?php |
||
7 | final class DateFieldNormalizer implements FieldNormalizerInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var FieldNormalizerInterface |
||
11 | */ |
||
12 | private $fieldNormalizer; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $format; |
||
18 | |||
19 | /** |
||
20 | * @param FieldNormalizerInterface $fieldNormalizer |
||
21 | */ |
||
22 | public function __construct(FieldNormalizerInterface $fieldNormalizer) |
||
26 | |||
27 | /** |
||
28 | * @param string $path |
||
29 | * @param object $object |
||
30 | * @param mixed $value |
||
|
|||
31 | * @param NormalizerContextInterface $context |
||
32 | * @param NormalizerInterface|null $normalizer |
||
33 | * |
||
34 | * @return mixed |
||
35 | */ |
||
36 | public function normalizeField( |
||
50 | } |
||
51 |
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.