diff --git a/src/Exceptions/Handler.php b/src/Exceptions/Handler.php index 87f7e50..76fcb61 100644 --- a/src/Exceptions/Handler.php +++ b/src/Exceptions/Handler.php @@ -42,11 +42,11 @@ protected function __construct() /** * Handle namespace change. * - * @param \Exception $exception + * @param \Exception|\Error $exception * * @return void */ - protected function namespaceHandler(Exception $exception) + protected function namespaceHandler($exception) { if ($this->namespace && $exception instanceof ClientException) { return $exception->withNamespace($this->namespace); @@ -56,11 +56,11 @@ protected function namespaceHandler(Exception $exception) /** * Handle request exception. * - * @param \Exception $exception + * @param \Exception|\Error $exception * * @return void */ - protected function requestExceptionHandler(Exception $exception) + protected function requestExceptionHandler($exception) { if ($exception instanceof RequestException) { if ( @@ -95,12 +95,11 @@ public function registerHandler(callable $handler) /** * Handles exception. * - * @param \Exception $exception - * @param bool $throw + * @param \Exception|\Error $exception * * @return void */ - public function handle(Exception $exception) + public function handle($exception) { foreach ($this->handlers as $handler) { $result = $handler($exception);