From 17cb4a2e4f3e7c0958547e8be5d253556a2631ac Mon Sep 17 00:00:00 2001 From: Armando Caprio Date: Tue, 26 Mar 2024 12:24:37 +0100 Subject: [PATCH] Testata versione 9 di laravel --- README.md | 2 ++ src/Laravel/KrakenExceptionHandler.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 345b9ce..8047a50 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,8 @@ try { > **Requires [Laravel 10.x](https://laravel.com/docs/10.x)** > +> **[ExceptionHandler](#exceptionhandler-usage-laravel) also works with [Laravel 9.x](https://laravel.com/docs/9.x)** +> > Previous or later versions have not yet been tested > > use on other versions is possible at your own risk diff --git a/src/Laravel/KrakenExceptionHandler.php b/src/Laravel/KrakenExceptionHandler.php index 6db8ff9..a0d0bf7 100755 --- a/src/Laravel/KrakenExceptionHandler.php +++ b/src/Laravel/KrakenExceptionHandler.php @@ -8,7 +8,7 @@ use Throwable; class KrakenExceptionHandler extends ExceptionHandler{ - public final function register(): void { + public function register(): void { $this->reportable(function ( Throwable $e) { $enabledEnvs = config( 'kraken.enabled_envs' ); if( $enabledEnvs !== null and !in_array( App::environment(), $enabledEnvs ) ) {