From ac87ab52e69345886145c57e2607aab73987cbd2 Mon Sep 17 00:00:00 2001 From: Alexander Minkin Date: Sun, 9 Feb 2025 17:01:04 +0300 Subject: [PATCH] fix(VKAPIRequestHandler): set fail's return type as never --- VKAPI/Handlers/VKAPIRequestHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VKAPI/Handlers/VKAPIRequestHandler.php b/VKAPI/Handlers/VKAPIRequestHandler.php index b67c4797..4804a8dd 100644 --- a/VKAPI/Handlers/VKAPIRequestHandler.php +++ b/VKAPI/Handlers/VKAPIRequestHandler.php @@ -20,7 +20,7 @@ abstract class VKAPIRequestHandler $this->platform = $platform; } - protected function fail(int $code, string $message): void + protected function fail(int $code, string $message): never { throw new APIErrorException($message, $code); }