Skip to content

Commit

Permalink
Hides PHP 8.4 Deperecation Warning (#319)
Browse files Browse the repository at this point in the history
* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

* wip

Signed-off-by: Mior Muhammad Zaki <[email protected]>

---------

Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone authored Dec 27, 2024
1 parent fecb306 commit 854039c
Show file tree
Hide file tree
Showing 3 changed files with 235 additions and 220 deletions.
14 changes: 14 additions & 0 deletions app/Exceptions/HandleExceptions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace App\Exceptions;

class HandleExceptions extends \Illuminate\Foundation\Bootstrap\HandleExceptions
{
/**
* {@inheritdoc}
*/
protected function shouldIgnoreDeprecationErrors()
{
return true;
}
}
5 changes: 5 additions & 0 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
Illuminate\Foundation\Exceptions\Handler::class
);

$app->singleton(
Illuminate\Foundation\Bootstrap\HandleExceptions::class,
App\Exceptions\HandleExceptions::class
);

/*
|--------------------------------------------------------------------------
| Return The Application
Expand Down
Loading

0 comments on commit 854039c

Please sign in to comment.