diff --git a/flight/net/Router.php b/flight/net/Router.php index 64313fc..dba9513 100644 --- a/flight/net/Router.php +++ b/flight/net/Router.php @@ -61,7 +61,7 @@ class Router { $methods = explode('|', $method); } - array_push($this->routes, new Route($url, $callback, $methods, $pass_route)); + $this->routes[] = new Route($url, $callback, $methods, $pass_route); } /**