Skip to content

Commit

Permalink
Change return type of Worker::sendProcessId to void
Browse files Browse the repository at this point in the history
Signed-off-by: Plakhotnikov Vladimir <v.plahotnikov@yclients.tech>
  • Loading branch information
Plakhotnikov Vladimir committed Jun 1, 2024
1 parent c07921d commit c81a6bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,10 @@ public static function createFromEnvironment(
);
}

private function sendProcessId(): static
private function sendProcessId(): void
{
$frame = new Frame($this->encode(['pid' => \getmypid()]), [], Frame::CONTROL);
$this->sendFrame($frame);
return $this;
}

private function haveToPing(): void
Expand Down

0 comments on commit c81a6bb

Please sign in to comment.