The expression is_array($input) ? array...$input) : trim($input); of type array|string adds the type string to the return on line 11 which is incompatible with the return type declared by the interface Ddeboer\DataImport\ItemC...erterInterface::convert of type array|null.