1 | <?php |
||
12 | class ExceptionRenderer extends Http\ExceptionRenderer implements Http\IExceptionRenderer |
||
13 | { |
||
14 | /** @var RunInterface */ |
||
15 | protected $run; |
||
16 | |||
17 | /** |
||
18 | * WhoopsRenderer constructor. |
||
19 | * |
||
20 | * @param RunInterface $run |
||
21 | * @param bool $inDevelopmentEnvironment |
||
22 | */ |
||
23 | 1 | public function __construct(RunInterface $run, bool $inDevelopmentEnvironment = false) |
|
29 | |||
30 | /** |
||
31 | * @return RunInterface |
||
32 | */ |
||
33 | public function getRun() |
||
37 | |||
38 | /** |
||
39 | * Renders an exception |
||
40 | * |
||
41 | * @param Throwable|Exception $ex The thrown exception |
||
42 | */ |
||
43 | 1 | public function render($ex) |
|
47 | } |
||
48 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.