handle type issue on UpsertContact

This commit is contained in:
Jérémy Munsch 2023-08-29 17:11:11 +02:00
parent 5d4a1714d6
commit 8dd4fc6d74
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

@ -36,7 +36,7 @@ class UpsertContactsRequest extends FormRequest
$contact->put('data', \collect($contact->get('data'))->all());
$contact->put('dataParsed', \collect($contact->get('data'))
->map(function ($value, $index) {
return \call_user_func([$this, 'filterDataLine'], $value, $index);
return \call_user_func([$this, 'filterDataLine'], \collect($value)->all(), $index);
})
->filter()->all());
}