diff --git a/src/Application/Routers/RouteList.php b/src/Application/Routers/RouteList.php index 6fbea06fe..f77a81922 100644 --- a/src/Application/Routers/RouteList.php +++ b/src/Application/Routers/RouteList.php @@ -102,7 +102,7 @@ public function offsetSet($index, $router): void if ($router instanceof Route) { trigger_error('Usage `$router[] = new Route(...)` is deprecated, use `$router->addRoute(...)`.', E_USER_DEPRECATED); } else { - $class = getclass($router); + $class = get_class($router); trigger_error("Usage `\$router[] = new $class` is deprecated, use `\$router->add(new $class)`.", E_USER_DEPRECATED); }