Skip to content

Commit

Permalink
Static return
Browse files Browse the repository at this point in the history
  • Loading branch information
jenky committed Jul 13, 2023
1 parent d2a9b7e commit 5ae95ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/PoolInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ interface PoolInterface
{
/**
* Set the maximum number of requests to send concurrently.
*
* @return static
*/
public function concurrent(int $concurrency): static;
public function concurrent(int $concurrency): PoolInterface;

/**
* Send concurrent requests.
Expand Down
2 changes: 1 addition & 1 deletion src/PoolTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ trait PoolTrait
{
private int $concurrency = 25;

public function concurrent(int $concurrency): static
public function concurrent(int $concurrency): PoolInterface
{
if ($concurrency < 1) {
throw new \ValueError('Argument #1 ($concurrency) must be positive, got '.$concurrency);
Expand Down

0 comments on commit 5ae95ae

Please sign in to comment.