#49 Fixed WsServer::getSubProtocolString method return value and related unit-test
This commit is contained in:
parent
491919f7dc
commit
399d22550a
@ -208,7 +208,7 @@ class WsServer implements MessageComponentInterface {
|
||||
}
|
||||
}
|
||||
|
||||
return substr($string, 0, -1);
|
||||
return substr($string, 0, -1) ?: '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user