Skip to content

Commit

Permalink
Testata versione 9 di laravel
Browse files Browse the repository at this point in the history
  • Loading branch information
Armando Caprio committed Mar 26, 2024
1 parent ccae403 commit 17cb4a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Laravel/KrakenExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) {
Expand Down

0 comments on commit 17cb4a2

Please sign in to comment.