The expression return $this->serializer...ializeFormat($request)) could return the type array which is incompatible with the type-hinted return object. Consider adding an additional type-check to rule them out.
It seems like $argument->getType() can also be of type null; however, parameter $type of Symfony\Component\Serial...nterface::deserialize() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation