| 1 | <?php |
||
| 8 | class TrailingSlashUrlGenerator extends UrlGenerator |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Format the given URL segments into a single URL. |
||
| 12 | * |
||
| 13 | * @param string $root |
||
| 14 | * @param string $path |
||
| 15 | * @param string $route |
||
| 16 | * |
||
| 17 | * @return string |
||
| 18 | */ |
||
| 19 | public function format($root, $path, $route = '') |
||
| 27 | |||
| 28 | private function pathIsFile($path): bool |
||
| 32 | |||
| 33 | private function packageIsDisabled(): bool |
||
| 37 | } |
||
| 38 |
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: