1 | <?php |
||
15 | class RouteServiceProvider extends ServiceProvider |
||
16 | { |
||
17 | /* ----------------------------------------------------------------- |
||
18 | | Main Methods |
||
19 | | ----------------------------------------------------------------- |
||
20 | */ |
||
21 | |||
22 | /** |
||
23 | * Boot the service provider. |
||
24 | */ |
||
25 | 48 | public function boot(): void |
|
33 | |||
34 | /* ----------------------------------------------------------------- |
||
35 | | Check Methods |
||
36 | | ----------------------------------------------------------------- |
||
37 | */ |
||
38 | |||
39 | /** |
||
40 | * Check if routes is enabled. |
||
41 | * |
||
42 | * @return bool |
||
43 | */ |
||
44 | 48 | public function isEnabled(): bool |
|
48 | } |
||
49 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: