1 | <?php |
||
11 | final class Serializard |
||
12 | { |
||
13 | private $normalizers; |
||
14 | private $hydrators; |
||
15 | /** @var FormatInterface[] */ |
||
16 | private $formats; |
||
17 | |||
18 | public function __construct(Formats $formats, Handlers $normalizers, Handlers $hydrators) |
||
24 | |||
25 | public function serialize($var, $format) |
||
29 | |||
30 | public function unserialize($var, $class, $format) |
||
34 | |||
35 | private function getFormat($alias) |
||
45 | } |
||
46 |
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..