The method data() does not exist on Sarala\Transformer\TransformerAbstract. Since it exists in all sub-types, consider adding an abstract or default implementation to Sarala\Transformer\TransformerAbstract.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
It seems like $fields->get($resourceName) can also be of type null; however, parameter $arrays of array_merge() does only seem to accept array, 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