| 1 | <?php |
||
| 12 | class DelegatingLoader extends SymfonyDirectoryLoader |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * {@inheritdoc} |
||
| 16 | */ |
||
| 17 | public function load($file, $type = null) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param RouteCollection $symfonyCollection |
||
| 25 | * @return \Nip\Router\RouteCollection |
||
| 26 | */ |
||
| 27 | protected function transformCollection(RouteCollection $symfonyCollection) |
||
| 34 | } |
||
| 35 |
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: