refactor(Router): use string callable syntax for default callbacks

This commit is contained in:
kj
2026-09-08 12:08:21 -03:00
parent 1f29622914
commit b7260b5199

View File

@@ -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.