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
{
}

View file

@ -16,7 +16,7 @@ class FrontPageController extends Controller
/**
* Show all the recent activity.
*/
public function index(Request $request): Response|View
public function index(): Response|View
{
$notes = Note::latest()->with(['media', 'client', 'place'])->get();
$articles = Article::latest()->get();

View file

@ -71,7 +71,6 @@ class SendWebMentions implements ShouldQueue
$endpoint = null;
/** @var Client $guzzle */
$guzzle = resolve(Client::class);
$response = $guzzle->get($url);
//check HTTP Headers for webmention endpoint