We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b951011 commit dbce756Copy full SHA for dbce756
Controller/JsonRpcController.php
@@ -76,11 +76,11 @@ public function execute(Request $httprequest)
76
if ($request === null) {
77
return $this->getErrorResponse(self::PARSE_ERROR, null);
78
} elseif (!(isset($request['jsonrpc']) && isset($request['method']) && $request['jsonrpc'] == '2.0')) {
79
- return $this->getErrorResponse(self::INVALID_REQUEST, $request->id);
+ return $this->getErrorResponse(self::INVALID_REQUEST, $request['id']);
80
}
81
82
if (!in_array($request['method'], array_keys($this->config['functions']))) {
83
- return $this->getErrorResponse(self::METHOD_NOT_FOUND, $request->id);
+ return $this->getErrorResponse(self::METHOD_NOT_FOUND, $request['id']);
84
85
86
$service = $this->container->get($this->config['functions'][$request['method']]['service']);
0 commit comments