Skip to content

Commit d0974c0

Browse files
authored
Merge pull request #131 from Textalk/v1.5-fix
Fix for stream_socket_get_name
2 parents aada797 + a05d678 commit d0974c0

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)