Fatal error: Uncaught TypeError: App\Controllers\DemoController::tool(): Argument #1 ($slug) must be of type string, array given in /var/www/html/src/Controllers/DemoController.php:223
Stack trace:
#0 [internal function]: App\Controllers\DemoController->tool(Array)
#1 /var/www/html/core/Router.php(55): call_user_func_array(Array, Array)
#2 /var/www/html/public/index.php(226): Core\Router->dispatch('/demo/tool/prop...', 'GET')
#3 {main}
thrown in /var/www/html/src/Controllers/DemoController.php on line 223