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