It seems like $this->context can also be of type JMS\Serializer\SerializationContext; however, parameter $context of JMS\Serializer\Serializer::deserialize() does only seem to accept null|JMS\Serializer\DeserializationContext, 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
26
/** @scrutinizer ignore-type */ $this->context
Loading history...
27
);
28
}
29
30
5
$data = new ContentCollection($data);
31
5
$response->setData($data);
32
5
}
33
34
/**
35
* @param ResponseInterface|Response $response
36
*
37
* {@inheritdoc}
38
*/
39
35
public function supports(ResponseInterface $response): bool
The method isSuccessful() does not exist on CCT\Kong\Http\ResponseInterface. Since it exists in all sub-types, consider adding an abstract or default implementation to CCT\Kong\Http\ResponseInterface.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation