#49 Fixed WsServer::getSubProtocolString method return value and related unit-test

This commit is contained in:
Vladimir Kartaviy 2012-09-22 01:18:53 +03:00
parent 491919f7dc
commit 399d22550a

View File

@ -208,7 +208,7 @@ class WsServer implements MessageComponentInterface {
} }
} }
return substr($string, 0, -1); return substr($string, 0, -1) ?: '';
} }
/** /**