We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56679cc commit 30ebcc5Copy full SHA for 30ebcc5
src/Providers/ServerServiceProvider.php
@@ -53,7 +53,7 @@ protected function registerLoop()
53
protected function registerServer()
54
{
55
$this->app->singleton('reactphp.server', function ($app) {
56
- return new App(new \FrameworkX\Container($app), ...$app['config']->get('reactphp.middlewares', []));
+ return new App(new \FrameworkX\Container($app), ...(array_filter($app['config']->get('reactphp.middlewares', []))));
57
});
58
}
59
0 commit comments