Test Failed
Push — master ( ffc71e...1a0a2f )
by Koen
03:32
created

Handler::report()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
eloc 3
nc 2
nop 1
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Exceptions;
6
7
use Exception;
8
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
0 ignored issues
show
Bug introduced by
The type Illuminate\Foundation\Exceptions\Handler was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
10
final class Handler extends ExceptionHandler
11
{
12
    /**
13
     * A list of the exception types that are not reported.
14
     *
15
     * @var array
16
     */
17
    protected $dontReport = [
18
        //
19
    ];
20
21
    /**
22
     * A list of the inputs that are never flashed for validation exceptions.
23
     *
24
     * @var array
25
     */
26
    protected $dontFlash = [
27
        'password',
28
        'password_confirmation',
29
    ];
30
31
    /**
32
     * Report or log an exception.
33
     *
34
     * @param  \Exception $exception
35
     * @return void
36
     * @throws \Exception
37
     * @codeCoverageIgnore
38
     */
39
    public function report(Exception $exception)
40
    {
41
        if ($this->container->bound('sentry') && $this->shouldReport($exception)) {
42
            $this->container->make('sentry')->captureException($exception);
43
        }
44
45
        parent::report($exception);
46
    }
47
}
48