1 | <?php |
||
9 | final class DateTimeFieldNormalizer implements FieldNormalizerInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var FieldNormalizerInterface |
||
13 | */ |
||
14 | private $fieldNormalizer; |
||
15 | |||
16 | /** |
||
17 | * @var AccessorInterface |
||
18 | */ |
||
19 | private $accessor; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $format; |
||
25 | |||
26 | /** |
||
27 | * @param AccessorInterface|FieldNormalizerInterface $fieldNormalizer |
||
|
|||
28 | * @param string $format |
||
29 | */ |
||
30 | 6 | public function __construct($accessor, string $format = 'c') |
|
66 | |||
67 | /** |
||
68 | * @param string $path |
||
69 | * @param object $object |
||
70 | * @param NormalizerContextInterface $context |
||
71 | * @param NormalizerInterface|null $normalizer |
||
72 | * |
||
73 | * @return mixed |
||
74 | */ |
||
75 | 5 | public function normalizeField( |
|
96 | |||
97 | /** |
||
98 | * @param string $path |
||
99 | * @param $object |
||
100 | * @param NormalizerContextInterface $context |
||
101 | * @param NormalizerInterface|null $normalizer |
||
102 | * @return mixed |
||
103 | */ |
||
104 | 5 | private function getValue( |
|
116 | } |
||
117 |
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.