1 | <?php |
||
14 | final class ReferenceManyFieldDenormalizer implements FieldDenormalizerInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var callable |
||
18 | */ |
||
19 | private $repository; |
||
20 | |||
21 | /** |
||
22 | * @var AccessorInterface |
||
23 | */ |
||
24 | private $accessor; |
||
25 | |||
26 | /** |
||
27 | * @param callable $repository |
||
28 | * @param AccessorInterface $accessor |
||
29 | * @param callable|null $collectionFactory |
||
|
|||
30 | */ |
||
31 | 7 | public function __construct(callable $repository, AccessorInterface $accessor) |
|
36 | |||
37 | /** |
||
38 | * @param string $path |
||
39 | * @param object $object |
||
40 | * @param mixed $value |
||
41 | * @param DenormalizerContextInterface $context |
||
42 | * @param DenormalizerInterface|null $denormalizer |
||
43 | * |
||
44 | * @throws DeserializerLogicException |
||
45 | * @throws DeserializerRuntimeException |
||
46 | */ |
||
47 | 7 | public function denormalizeField( |
|
71 | |||
72 | /** |
||
73 | * @param array|\Traversable|\ArrayAccess $relatedObjects |
||
74 | */ |
||
75 | 5 | private function cleanRelatedObjects(&$relatedObjects) |
|
81 | |||
82 | /** |
||
83 | * @param string $path |
||
84 | * @param array $value |
||
85 | * @param array|\Traversable|\ArrayAccess $relatedObjects |
||
86 | */ |
||
87 | 5 | private function assignRelatedObjects(string $path, array $value, &$relatedObjects) |
|
101 | } |
||
102 |
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.