Fixed deprication warnings

This commit is contained in:
sessingo
2023-02-11 17:31:00 +01:00
parent 1764b67112
commit 941149d8d7
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -608,7 +608,7 @@ class Router
if (strpos($name, '@') !== false) {
[$controller, $method] = array_map('strtolower', explode('@', $name));
if ($controller === strtolower($route->getClass()) && $method === strtolower($route->getMethod())) {
if ($controller === strtolower((string)$route->getClass()) && $method === strtolower((string)$route->getMethod())) {
$this->debug('Found route "%s" by controller "%s" and method "%s"', $route->getUrl(), $controller, $method);
return $route;