We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73d67d9 commit 261a713Copy full SHA for 261a713
Program.php
@@ -6,7 +6,6 @@
6
use DevNet\Web\Extensions\ServiceCollectionExtensions;
7
use DevNet\Web\Hosting\WebHost;
8
use DevNet\Web\Http\HttpContext;
9
-use DevNet\System\Async\Task;
10
11
class Program
12
{
@@ -31,7 +30,7 @@ public static function main(array $args = [])
31
30
$app->useRouter();
32
// middlewares
33
$app->useEndpoint(function ($routes) {
34
- $routes->mapGet("/", fn (HttpContext $context): Task => $context->Response->writeAsync("Hello World!"));
+ $routes->mapGet("/", fn (HttpContext $context) => $context->Response->writeAsync("Hello World!"));
35
});
36
37
}
0 commit comments