The expression $this->serializer->deser...:class, $this->format); of type object|array adds the type array to the return on line 57 which is incompatible with the return type declared by the interface GpsLab\Domain\Event\Queu...Serializer::deserialize of type object.