On serialization there could be exception "Notice: Undefined index: @type" for root resource non-empty array fields.
It happens due to the fact that we're iterating over all object/resource fields (including array fields) in setResponseDataIncluded and then directly refer to "@type" key in array:2 [▼ "@scalar" => "string" "@value" => "sale" ]
On serialization there could be exception
"Notice: Undefined index: @type"
for root resource non-empty array fields.It happens due to the fact that we're iterating over all object/resource fields (including array fields) in
setResponseDataIncluded
and then directly refer to"@type"
key inarray:2 [▼ "@scalar" => "string" "@value" => "sale" ]