The Collection::__construct() need a SerializerInterface as second argument, but if the $data argument is an array of Resource object, this interface is never used. It should be nullable in order to fill the Collection with an array of Resource objects.
The Collection::__construct() need a
SerializerInterface
as second argument, but if the$data
argument is an array ofResource
object, this interface is never used. It should be nullable in order to fill theCollection
with an array ofResource
objects.