diff --git a/src/Application/Factory/SwooleApplicationFactory.php b/src/Application/Factory/SwooleApplicationFactory.php index 3fd4529..d988cfc 100644 --- a/src/Application/Factory/SwooleApplicationFactory.php +++ b/src/Application/Factory/SwooleApplicationFactory.php @@ -94,7 +94,7 @@ public function build(ContainerInterface $container) $routes = new CallbackCollection($container->get('routes'), $routeCallback); $app = new SwooleApplication( - $container->get('static-files'), + $container->has('static-files') ? $container->get('static-files') : [], $routes, $container->has(RequestHandlerInterface::class) ? $container->get(RequestHandlerInterface::class) : null,