Skip to content

Commit dbce756

Browse files
author
shady
committed
fix missing refactor
1 parent b951011 commit dbce756

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Controller/JsonRpcController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ public function execute(Request $httprequest)
7676
if ($request === null) {
7777
return $this->getErrorResponse(self::PARSE_ERROR, null);
7878
} elseif (!(isset($request['jsonrpc']) && isset($request['method']) && $request['jsonrpc'] == '2.0')) {
79-
return $this->getErrorResponse(self::INVALID_REQUEST, $request->id);
79+
return $this->getErrorResponse(self::INVALID_REQUEST, $request['id']);
8080
}
8181

8282
if (!in_array($request['method'], array_keys($this->config['functions']))) {
83-
return $this->getErrorResponse(self::METHOD_NOT_FOUND, $request->id);
83+
return $this->getErrorResponse(self::METHOD_NOT_FOUND, $request['id']);
8484
}
8585

8686
$service = $this->container->get($this->config['functions'][$request['method']]['service']);

0 commit comments

Comments
 (0)