use static callables with typehints

use-best-practices-in-index.php
fadrian06 4 days ago
parent eb24cff886
commit 83d7096ee7

@ -4,7 +4,7 @@ declare(strict_types=1);
require_once __DIR__ . '/flight/autoload.php'; require_once __DIR__ . '/flight/autoload.php';
Flight::route('/', function () { Flight::route('/', static function (): void {
echo 'hello world!'; echo 'hello world!';
}); });

Loading…
Cancel
Save