| 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 | * @param string $format |
||
| 22 | */ |
||
| 23 | 4 | public function __construct(FieldNormalizerInterface $fieldNormalizer, string $format = 'c') |
|
| 28 | |||
| 29 | /** |
||
| 30 | * @param string $path |
||
| 31 | * @param object $object |
||
| 32 | * @param mixed $value |
||
|
|
|||
| 33 | * @param NormalizerContextInterface $context |
||
| 34 | * @param NormalizerInterface|null $normalizer |
||
| 35 | * |
||
| 36 | * @return mixed |
||
| 37 | */ |
||
| 38 | 4 | public function normalizeField( |
|
| 59 | } |
||
| 60 |
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.