Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Pipeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function __destruct()
}
}

public function buffer(int $bufferSize): self
public function buffer(int $bufferSize): static
{
if ($bufferSize < 0) {
throw new \ValueError('Argument #1 ($bufferSize) must be non-negative, got ' . $bufferSize);
Expand All @@ -163,7 +163,7 @@ public function buffer(int $bufferSize): self
return $this;
}

public function concurrent(int $concurrency): self
public function concurrent(int $concurrency): static
{
if ($concurrency < 1) {
throw new \ValueError('Argument #1 ($concurrency) must be positive, got ' . $concurrency);
Expand All @@ -174,19 +174,19 @@ public function concurrent(int $concurrency): self
return $this;
}

public function sequential(): self
public function sequential(): static
{
return $this->concurrent(1);
}

public function ordered(): self
public function ordered(): static
{
$this->ordered = true;

return $this;
}

public function unordered(): self
public function unordered(): static
{
$this->ordered = false;

Expand Down
Loading