Skip to content

Commit 406b15a

Browse files
FIX: php 8.1 explode deprecation (#311)
* FIX: php 8.1 explode deprecation * Update Response.php Co-authored-by: Claudio Dekker <[email protected]>
1 parent 3a08d87 commit 406b15a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function rootView($rootView)
6060

6161
public function toResponse($request)
6262
{
63-
$only = array_filter(explode(',', $request->header('X-Inertia-Partial-Data')));
63+
$only = array_filter(explode(',', $request->header('X-Inertia-Partial-Data', '')));
6464

6565
$props = ($only && $request->header('X-Inertia-Partial-Component') === $this->component)
6666
? Arr::only($this->props, $only)

0 commit comments

Comments
 (0)