Merge pull request 'Removes writing to the ob if not expected' (#9) from develop into master
All checks were successful
/ build (push) Successful in 37s
All checks were successful
/ build (push) Successful in 37s
Reviewed-on: #9
This commit is contained in:
commit
6c9c51d66d
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