Fixed return type.

This commit is contained in:
flash 2024-08-18 20:54:39 +00:00
parent 0bf7ca0d52
commit 34528ae413

View file

@ -30,7 +30,7 @@ final class HanyuuRpcActions extends RpcActionHandler {
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];
if($text !== null && $text !== '')
$attrs['text'] = $text;