Skip to content

Commit

Permalink
Fix issues detected by psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Sep 3, 2023
1 parent 090367c commit f241980
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Rfc6455Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
use Amp\Websocket\WebsocketTimestamp;
use Traversable;

/**
* @implements \IteratorAggregate<int, WebsocketMessage>
*/
final class Rfc6455Connection implements WebsocketConnection, \IteratorAggregate
{
use ForbidCloning;
Expand Down Expand Up @@ -60,17 +63,17 @@ public function getTlsInfo(): ?TlsInfo
return $this->client->getTlsInfo();
}

public function isClosedByPeer(): bool
public function isClosedByPeer(): ?bool
{
return $this->client->isClosedByPeer();
}

public function getCloseCode(): int
public function getCloseCode(): ?int
{
return $this->client->getCloseCode();
}

public function getCloseReason(): string
public function getCloseReason(): ?string
{
return $this->client->getCloseReason();
}
Expand Down

0 comments on commit f241980

Please sign in to comment.