Skip to content

Commit

Permalink
v1: Fix error when using JsonRpcController::getArrayRequest() in a ca…
Browse files Browse the repository at this point in the history
…ll without params (cherry picked from commit 54dcc8b) # Conflicts: # src/Traits/JsonRpcController.php
  • Loading branch information
Pavel committed May 18, 2018
1 parent e5be82d commit dd2f0ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/JsonRpcController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected function getArrayRequest()
if (null === $this->arrayRequest) {
/** @var JsonRpcRequest $request */
$request = app('JsonRpcRequest');
return ArrayHelper::fromObject($request->call->params);
return ArrayHelper::fromObject($request->call->params ?? []);
}
return $this->arrayRequest;
}
Expand Down

0 comments on commit dd2f0ed

Please sign in to comment.