Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Nov 22, 2023
1 parent 898d44d commit 81a0511
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Channels/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function subscribed(Connection $connection): bool
*/
public function broadcast(array $payload, Connection $except = null): void
{
foreach ($this->connections as $connection) {
foreach ($this->connections() as $connection) {
if ($except && $except->id() === $connection->connection()->id()) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ abstract class Connection
/**
* The last time the connection was seen.
*/
protected int $lastSeenAt;
protected ?int $lastSeenAt;

/**
* Stores the ping state of the connection.
Expand Down

0 comments on commit 81a0511

Please sign in to comment.