Skip to content

Commit

Permalink
FIX: php 8.1 explode deprecation (#311)
Browse files Browse the repository at this point in the history
* FIX: php 8.1 explode deprecation

* Update Response.php

Co-authored-by: Claudio Dekker <[email protected]>
  • Loading branch information
nicoorfi and claudiodekker authored Oct 27, 2021
1 parent 3a08d87 commit 406b15a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function rootView($rootView)

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

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

0 comments on commit 406b15a

Please sign in to comment.