fix: Import validation

This commit is contained in:
Dan Harrin
2025-06-13 15:29:46 +01:00
parent 6ca41245db
commit 2581e5646d
@@ -615,7 +615,7 @@ trait CanImportRecords
{
$fileRules = [
'extensions:csv,txt',
function (string $attribute, mixed $value, Closure $fail) {
fn (): Closure => function (string $attribute, mixed $value, Closure $fail) {
$csvStream = $this->getUploadedFileStream($value);
if (! $csvStream) {