Removes writing to the ob if not expected
This commit is contained in:
parent
fefa1a92fd
commit
6b4cd7a612
2 changed files with 2 additions and 2 deletions
|
@ -38,8 +38,6 @@ final class DiscordAPI
|
||||||
$curl->post(self::OAUTH_TOKEN_URL, $data);
|
$curl->post(self::OAUTH_TOKEN_URL, $data);
|
||||||
|
|
||||||
if ($curl->error) {
|
if ($curl->error) {
|
||||||
$curl->diagnose();
|
|
||||||
|
|
||||||
throw new ExtendedException($curl->errorMessage, [ 'response' => $curl->response, 'data' => $data ]);
|
throw new ExtendedException($curl->errorMessage, [ 'response' => $curl->response, 'data' => $data ]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,8 @@ final class CrashHandler
|
||||||
) { }
|
) { }
|
||||||
|
|
||||||
public function register() : void {
|
public function register() : void {
|
||||||
|
error_reporting(0);
|
||||||
|
|
||||||
$handler = $this->getHandler();
|
$handler = $this->getHandler();
|
||||||
$this->container->addShared(HandlerInterface::class, $handler);
|
$this->container->addShared(HandlerInterface::class, $handler);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue