Skip to content

Commit

Permalink
Merge branch '2.0.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
denpamusic committed Oct 12, 2018
2 parents 81df483 + 1f7e9e3 commit 491ce1c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 (
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 491ce1c

Please sign in to comment.