Skip to content

Commit

Permalink
fix(exception): correct returned handler
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Sep 6, 2023
1 parent 8374eed commit 52eb9e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Config/Exceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Throwable;

use CodeIgniter\Config\BaseConfig;
use CodeIgniter\Debug\ExceptionHandler as BaseExceptionHandler;
use CodeIgniter\Debug\ExceptionHandlerInterface;
use CodeIgniter\Exceptions\HTTPExceptionInterface;
use Psr\Log\LogLevel;
Expand Down Expand Up @@ -87,6 +88,6 @@ public function handler(int $statusCode, Throwable $exception): ExceptionHandler
return new HTTPExceptionHandler($this);
}

return parent::handler($statusCode, $exception);
return new BaseExceptionHandler($this);
}
}

0 comments on commit 52eb9e6

Please sign in to comment.