| 1 | <?php namespace Arcanesoft\Foundation\Providers; |
||
| 14 | class RouteServiceProvider extends ServiceProvider |
||
| 15 | { |
||
| 16 | /* ------------------------------------------------------------------------------------------------ |
||
| 17 | | Getters & Setters |
||
| 18 | | ------------------------------------------------------------------------------------------------ |
||
| 19 | */ |
||
| 20 | /** |
||
| 21 | * Get the routes namespace |
||
| 22 | * |
||
| 23 | * @return string |
||
| 24 | */ |
||
| 25 | protected function getRouteNamespace() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get Foundation route group. |
||
| 32 | * |
||
| 33 | * @return array |
||
| 34 | */ |
||
| 35 | 18 | protected function getFoundationRouteGroup() |
|
| 39 | |||
| 40 | /* ------------------------------------------------------------------------------------------------ |
||
| 41 | | Main Functions |
||
| 42 | | ------------------------------------------------------------------------------------------------ |
||
| 43 | */ |
||
| 44 | /** |
||
| 45 | * Define the routes for the application. |
||
| 46 | * |
||
| 47 | * @param Router $router |
||
| 48 | */ |
||
| 49 | 18 | public function map(Router $router) |
|
| 57 | } |
||
| 58 |
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: