for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Exceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Throwable;
class Handler extends ExceptionHandler
{
/**
* {@inheritDoc}
*
* @var array<int, class-string<Throwable>>
array<int, class-string<Throwable>>
4
*/
protected $dontReport = [
//
];
* @var array<int, string>
protected $dontFlash = [
'current_password',
'password',
'password_confirmation',
public function register()
$this->reportable(function (Throwable $e) {
$e
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
$this->reportable(function (/** @scrutinizer ignore-unused */ Throwable $e) {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
});
}