| 1 | <?php |
||
| 19 | class Hydrator implements HydratorInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var Serializer |
||
| 23 | */ |
||
| 24 | protected $serializer; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var Context |
||
| 28 | */ |
||
| 29 | protected $serializationContext; |
||
| 30 | |||
| 31 | public function __construct($cacheDir, $metaDir) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | public function extract($object) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | public function hydrate($target, array $data) |
||
| 55 | } |
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: