From 701caae7eb85f2af7fd5822a7f128206acb1d094 Mon Sep 17 00:00:00 2001 From: KJ Date: Wed, 29 May 2024 13:24:20 -0400 Subject: [PATCH] Change route method to static. --- src/Libs/View.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Libs/View.php b/src/Libs/View.php index 8b0e7c4..23713f2 100644 --- a/src/Libs/View.php +++ b/src/Libs/View.php @@ -153,7 +153,7 @@ class View extends Neuron { * * @return string */ - public function route(string $path = '/'): string + public static function route(string $path = '/'): string { if (defined('SITE_URL') && !empty(SITE_URL)) return rtrim(SITE_URL, '/').'/'.ltrim($path, '/');