From 6b4cd7a6127c8733b321a0e36075394555ef021a Mon Sep 17 00:00:00 2001 From: Michel Date: Thu, 7 Nov 2024 22:24:50 +0100 Subject: [PATCH] Removes writing to the ob if not expected --- src/php/Api/DiscordAPI.php | 2 -- src/php/CrashHandler.php | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/php/Api/DiscordAPI.php b/src/php/Api/DiscordAPI.php index 6adda8e..3491ec7 100644 --- a/src/php/Api/DiscordAPI.php +++ b/src/php/Api/DiscordAPI.php @@ -38,8 +38,6 @@ final class DiscordAPI $curl->post(self::OAUTH_TOKEN_URL, $data); if ($curl->error) { - $curl->diagnose(); - throw new ExtendedException($curl->errorMessage, [ 'response' => $curl->response, 'data' => $data ]); } diff --git a/src/php/CrashHandler.php b/src/php/CrashHandler.php index e195f64..476a7ca 100644 --- a/src/php/CrashHandler.php +++ b/src/php/CrashHandler.php @@ -21,6 +21,8 @@ final class CrashHandler ) { } public function register() : void { + error_reporting(0); + $handler = $this->getHandler(); $this->container->addShared(HandlerInterface::class, $handler); -- 2.45.2