This commit is contained in:
2020-12-15 18:26:04 +08:00
parent c4228e1658
commit 5082cb4787
+4 -3
View File
@@ -301,10 +301,11 @@ class Server extends Application
/**
* @param $config
* @param $settings
* @return \Swoole\Server|Packet|Receive|Http|Websocket
* @throws Exception
* @return \Swoole\Server|Packet|Receive|Http|Websocket|null
* @throws NotFindClassException
* @throws ReflectionException
*/
private function dispatchCreate($config, $settings): \Swoole\Server|Packet|Receive|Http|Websocket
private function dispatchCreate($config, $settings): \Swoole\Server|Packet|Receive|Http|Websocket|null
{
if (!($this->baseServer instanceof \Swoole\Server)) {
$this->parseServer($config, $settings);