app/Exceptions/Handler.php
Avoid unused parameters such as '$e'. Open
Open
$this->reportable(function (Throwable $e) {
- Read upRead up
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
Class extends undeclared class \Illuminate\Foundation\Exceptions\Handler
(Did you mean class \App\Exceptions\Handler) Open
Open
class Handler extends ExceptionHandler
- Exclude checks
Call to undeclared method \App\Exceptions\Handler::reportable
Open
Open
$this->reportable(function (Throwable $e) {
- Exclude checks