Fixed return type.
This commit is contained in:
parent
0bf7ca0d52
commit
34528ae413
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ final class HanyuuRpcActions extends RpcActionHandler {
|
||||||
return $payload;
|
return $payload;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function createErrorPayload(string $code, ?string $text = null): object {
|
private static function createErrorPayload(string $code, ?string $text = null): array {
|
||||||
$attrs = ['code' => $code];
|
$attrs = ['code' => $code];
|
||||||
if($text !== null && $text !== '')
|
if($text !== null && $text !== '')
|
||||||
$attrs['text'] = $text;
|
$attrs['text'] = $text;
|
||||||
|
|
Loading…
Reference in a new issue