Skip to content

Commit

Permalink
Update SafeSocket.php
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Sep 30, 2023
1 parent e1bf1c1 commit 7e72387
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/SafeSocket.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ class SafeSocket implements SocketInterface

protected bool $loop = false;

protected ?LoggerInterface $logger = null;

public function __construct(protected Socket $socket, int $capacity = 65535, protected bool $throw = true)
{
public function __construct(
protected Socket $socket,
int $capacity = 65535,
protected bool $throw = true,
protected ?LoggerInterface $logger = null
) {
$this->channel = new Channel($capacity);
}

Expand Down

0 comments on commit 7e72387

Please sign in to comment.