Skip to content

Commit 8518ce3

Browse files
committed
fix: handle fields is not an array
1 parent fd2e06e commit 8518ce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Support/Fields.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static function get(Request $request, string $type = null): ?array
4545
throw new \BadMethodCallException(__METHOD__ . ':$type must not be null when not current stack');
4646
}
4747

48-
$fields = self::parse($request->input('fields', []));
48+
$fields = self::parse((array) $request->input('fields', []));
4949

5050
return $fields[$type] ?? null;
5151
}

0 commit comments

Comments
 (0)