| 1 | <?php |
||
| 16 | class RouteServiceProvider extends ServiceProvider |
||
| 17 | { |
||
| 18 | /* ----------------------------------------------------------------- |
||
| 19 | | Getters & Setters |
||
| 20 | | ----------------------------------------------------------------- |
||
| 21 | */ |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Check if routes is enabled |
||
| 25 | * |
||
| 26 | * @return bool |
||
| 27 | */ |
||
| 28 | 592 | public function isEnabled(): bool |
|
| 32 | |||
| 33 | /* ----------------------------------------------------------------- |
||
| 34 | | Main Methods |
||
| 35 | | ----------------------------------------------------------------- |
||
| 36 | */ |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Boot the service provider. |
||
| 40 | */ |
||
| 41 | 592 | public function boot(): void |
|
| 49 | |||
| 50 | /* ----------------------------------------------------------------- |
||
| 51 | | Other Methods |
||
| 52 | | ----------------------------------------------------------------- |
||
| 53 | */ |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Get config value by key |
||
| 57 | * |
||
| 58 | * @param string $key |
||
| 59 | * @param mixed|null $default |
||
| 60 | * |
||
| 61 | * @return mixed |
||
| 62 | */ |
||
| 63 | 592 | private function config($key, $default = null) |
|
| 67 | } |
||
| 68 |
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: