Initial work with Psalm reporting

This commit is contained in:
Jonny Barnes 2023-06-25 14:18:40 +01:00
parent 1ac8e27157
commit 3a681c0a44
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
9 changed files with 224 additions and 38 deletions

View file

@ -7,23 +7,12 @@ use Throwable;
class Handler extends ExceptionHandler
{
/**
* The list of the inputs that are never flashed to the session on validation exceptions.
*
* @var array<int, string>
*/
protected $dontFlash = [
'current_password',
'password',
'password_confirmation',
];
/**
* Register the exception handling callbacks for the application.
*/
public function register(): void
{
$this->reportable(function (Throwable $e) {
$this->reportable(function (Throwable $_e) {
//
});
}

View file

@ -1,7 +0,0 @@
<?php
namespace App\Exceptions;
class TwitterContentException extends \Exception
{
}