1 | <?php |
||
17 | class Whoops |
||
18 | { |
||
19 | use Utils\StreamTrait; |
||
20 | |||
21 | /** |
||
22 | * @var Run|null The provided instance of Whoops |
||
23 | */ |
||
24 | private $whoops; |
||
25 | |||
26 | /** |
||
27 | * @var bool Whether catch errors or not |
||
28 | */ |
||
29 | private $catchErrors = true; |
||
30 | |||
31 | /** |
||
32 | * Set the whoops instance. |
||
33 | * |
||
34 | * @param Run|null $whoops |
||
35 | */ |
||
36 | public function __construct(Run $whoops = null) |
||
40 | |||
41 | /** |
||
42 | * Whether catch errors or not. |
||
43 | * |
||
44 | * @param bool $catchErrors |
||
45 | * |
||
46 | * @return self |
||
47 | */ |
||
48 | public function catchErrors($catchErrors = true) |
||
54 | |||
55 | /** |
||
56 | * Execute the middleware. |
||
57 | * |
||
58 | * @param ServerRequestInterface $request |
||
59 | * @param ResponseInterface $response |
||
60 | * @param callable $next |
||
61 | * |
||
62 | * @return ResponseInterface |
||
63 | */ |
||
64 | public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) |
||
101 | |||
102 | /** |
||
103 | * Returns the whoops instance or create one. |
||
104 | * |
||
105 | * @param ServerRequestInterface $request |
||
106 | * |
||
107 | * @return Run |
||
108 | */ |
||
109 | private function getWhoopsInstance(ServerRequestInterface $request) |
||
156 | } |
||
157 |
Scrutinizer analyzes your
composer.json
/composer.lock
file if available to determine the classes, and functions that are defined by your dependencies.It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.