It seems like new \NilPortugues\Serial...rmer\JsonTransformer()) of type object<NilPortugues\Seri...zer\DeepCopySerializer> is incompatible with the declared type object<NilPortugues\Seri...former\JsonTransformer> of property $transformer.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
20
}
21
22
/**
23
* Turns a data structure into a string that can be recovered.
24
*
25
* @param mixed $data
26
*
27
* @return string
28
*/
29
public function serialize($data) : string
30
{
31
return $this->transformer->serialize($data);
32
}
33
34
/**
35
* Turns string data structure into an usable $data structure.
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..