Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
16 | public static function forInvalidController($controller): self |
||
17 | { |
||
18 | $dumped = var_export($controller, true); |
||
19 | return new self( |
||
20 | "Passed controller (${dumped}) is not valid controller, |
||
21 | controller must be callable or implement " . Controller::class . ' interface' |
||
22 | ); |
||
25 |