The expression return $this->error could return the type null which is incompatible with the type-hinted return Strider2038\JsonRpcClient\Response\ErrorObject. Consider adding an additional type-check to rule them out.
Loading history...
60
}
61
62
13
public function setError(ErrorObject $error): void