Skip to content

Commit

Permalink
fix psalm errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu committed Feb 22, 2025
1 parent 28e3675 commit 255b2ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Previous/Sockets/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ public function timeoutAfter(Period $timeout): self
* data provided by the callback and then restart watching for the socket
* to be readable.
*
* @psalm-mutation-free
*
* @param callable(): Sequence<Str> $provide
*/
public function heartbeatWith(callable $provide): self
Expand All @@ -200,6 +202,8 @@ public function heartbeatWith(callable $provide): self
*
* Use this method to abort the watch when you receive signals.
*
* @psalm-mutation-free
*
* @param callable(): bool $abort
*/
public function abortWhen(callable $abort): self
Expand Down
3 changes: 3 additions & 0 deletions src/Previous/Sockets/Server/Pool.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public static function of(
);
}

/**
* @psalm-mutation-free
*/
public function with(Server $server): self
{
return new self(
Expand Down

0 comments on commit 255b2ea

Please sign in to comment.