Commit dc19309
authored
Fix L8 cached routes (#29)
* Fix L8 cached routes
This will fix the following error when using cached routes without the $namespace member in your RouteServiceProvider:
```
Argument 1 passed to CodeZero\LocalizedRoutes\UrlGenerator::__construct() must be an instance of Illuminate\Routing\RouteCollection, instance of Illuminate\Routing\CompiledRouteCollection given, called in /var/www/vendor/codezero/laravel-localized-routes/src/LocalizedRoutesServiceProvider.php on line 104
```
* Remove incompatible dependencies,
Remove tests for deprecated versions,
* Remove function type hint, check type manually,
Add back support & testing for L5.6+,
* Fix code standard
* Update condition1 parent 70a0964 commit dc19309
2 files changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
0 commit comments