Use empty instead of isset
parent
494b3a2745
commit
dc52a3b069
|
@ -19,7 +19,7 @@ ErrorHandler::register();
|
|||
|
||||
cli_set_process_title('PHP Language Server');
|
||||
|
||||
if (isset($options['tcp'])) {
|
||||
if (!empty($options['tcp'])) {
|
||||
$address = $options['tcp'];
|
||||
$socket = stream_socket_client('tcp://' . $address, $errno, $errstr);
|
||||
if ($socket === false) {
|
||||
|
|
Loading…
Reference in New Issue