Update CoreMiddleware.php

This commit is contained in:
黄朝晖 2019-08-02 16:36:20 +08:00 committed by GitHub
parent a4313755ae
commit 8a0e4e3440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,11 +106,7 @@ class CoreMiddleware implements MiddlewareInterface
return $this->normalizer;
}
/**
* @param string $serverName
* @return Dispatcher
*/
protected function createDispatcher(string $serverName)
protected function createDispatcher(string $serverName): Dispatcher
{
$factory = $this->container->get(DispatcherFactory::class);
return $factory->getDispatcher($serverName);