aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Exceptions/Handler.php22
-rw-r--r--composer.json9
2 files changed, 16 insertions, 15 deletions
diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php
index 21c9784..e5bd8e2 100644
--- a/app/Exceptions/Handler.php
+++ b/app/Exceptions/Handler.php
@@ -2,14 +2,14 @@
namespace App\Exceptions;
-use Exception;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
+use Throwable;
class Handler extends ExceptionHandler
{
/**
- * A list of the exception types that should not be reported.
+ * A list of the throwable types that should not be reported.
*
* @var array
*/
@@ -23,28 +23,28 @@ class Handler extends ExceptionHandler
];
/**
- * Report or log an exception.
+ * Report or log a throwable.
*
- * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
+ * This is a great spot to send throwables to Sentry, Bugsnag, etc.
*
- * @param \Exception $exception
+ * @param \Throwable $throwable
* @return void
*/
- public function report(Exception $exception)
+ public function report(Throwable $throwable)
{
- parent::report($exception);
+ parent::report($throwable);
}
/**
- * Render an exception into an HTTP response.
+ * Render a throwable into an HTTP response.
*
* @param \Illuminate\Http\Request $request
- * @param \Exception $exception
+ * @param \Throwable $throwable
* @return \Illuminate\Http\Response
*/
- public function render($request, Exception $exception)
+ public function render($request, Throwable $throwable)
{
- return parent::render($request, $exception);
+ return parent::render($request, $throwable);
}
/**
diff --git a/composer.json b/composer.json
index 10914b7..486d2f2 100644
--- a/composer.json
+++ b/composer.json
@@ -5,16 +5,17 @@
"license": "GPLv3",
"type": "project",
"require": {
- "php": ">=7.2.0",
+ "php": ">=7.2.5",
"fideloper/proxy": "^4.0",
- "laravel/framework": "^6.0",
- "doctrine/dbal": "^2.5"
+ "laravel/framework": "^7.0",
+ "doctrine/dbal": "^2.5",
+ "laravel/ui": "^2.0"
},
"require-dev": {
"filp/whoops": "~2.0",
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
- "phpunit/phpunit": "^7.0"
+ "phpunit/phpunit": "^8.5"
},
"autoload": {
"classmap": [