1 | <?php |
||
8 | final class SerializerProcessor implements EntityProcessorInterface |
||
9 | { |
||
10 | /** @var DenormalizerInterface */ |
||
11 | private $denormalizer; |
||
12 | |||
13 | /** |
||
14 | * SerializerProcessor constructor. |
||
15 | * |
||
16 | * @param DenormalizerInterface $denormalizer |
||
17 | */ |
||
18 | public function __construct(DenormalizerInterface $denormalizer) |
||
22 | |||
23 | /** {@inheritdoc} */ |
||
24 | public function updateEntity($entity, $data) |
||
28 | } |
||
29 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: