From 26589062f586250c944e6647e203ebe52a13daf8 Mon Sep 17 00:00:00 2001 From: kj Date: Tue, 8 Sep 2026 12:05:35 -0300 Subject: [PATCH] refactor(Router): use string callable syntax for default callbacks --- src/Libs/Router.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Libs/Router.php b/src/Libs/Router.php index 428ed6d..b56952d 100644 --- a/src/Libs/Router.php +++ b/src/Libs/Router.php @@ -50,7 +50,7 @@ class Router * * @var callable $notFoundCallback */ - public static $notFoundCallback = Router::defaultNotFound(...); + public static $notFoundCallback = 'Libs\Router::defaultNotFound'; /** * Default callback function for when @@ -72,7 +72,7 @@ class Router * * @var callable $exceptionCallback */ - public static $exceptionCallback = Router::defaultException(...); + public static $exceptionCallback = 'Libs\Router::defaultException'; /** * Default callback function for exception responses.