@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | public function addRoute(Route $route) : Router |
36 | 36 | { |
37 | - $this->rawRoutes[$route->scope()] = $this->rawRoutes[$route->scope()] ?? []; |
|
37 | + $this->rawRoutes[$route->scope()] = $this->rawRoutes[$route->scope()] ? ? []; |
|
38 | 38 | $this->rawRoutes[$route->scope()][] = [$route->method(), $route->pattern(), $route->handler()]; |
39 | 39 | $this->compilationKey = null; |
40 | 40 |