Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function normalizeField( |
||
37 | string $path, |
||
38 | $object, |
||
39 | NormalizerContextInterface $context, |
||
40 | NormalizerInterface $normalizer = null |
||
41 | ) { |
||
42 | $value = $this->fieldNormalizer->normalizeField($path, $object, $context, $normalizer); |
||
43 | |||
44 | if (!$value instanceof \DateTimeInterface) { |
||
45 | return $value; |
||
46 | } |
||
47 | |||
48 | return $value->format($this->format); |
||
49 | } |
||
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.