From 83d7096ee74006d826c0209bf414a9359cf17a6b Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Sat, 11 Jul 2026 13:46:58 -0400 Subject: [PATCH] use static callables with typehints --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index e9af83f..83a9a9d 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ declare(strict_types=1); require_once __DIR__ . '/flight/autoload.php'; -Flight::route('/', function () { +Flight::route('/', static function (): void { echo 'hello world!'; });