Skip to content

Commit a05d678

Browse files
committed
Fix for stream_socket_get_name
1 parent aada797 commit a05d678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function pong(string $payload = ''): void
147147
*/
148148
public function getName(): ?string
149149
{
150-
return $this->isConnected() ? stream_socket_get_name($this->socket) : null;
150+
return $this->isConnected() ? stream_socket_get_name($this->socket, false) : null;
151151
}
152152

153153
/**

0 commit comments

Comments
 (0)