Skip to content

Commit

Permalink
timeout in construction to have default null instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ziming committed Mar 26, 2022
1 parent b0131c6 commit b0000b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LaravelScrapingBee.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ final class LaravelScrapingBee
private array $params = [];
private array $headers = [];

public static function make(?string $apiKey = null, int $timeout = 120): self
public static function make(?string $apiKey = null, ?int $timeout = null): self
{
return new static($apiKey, $timeout);
}

public function __construct(?string $apiKey = null, int $timeout = 120)
public function __construct(?string $apiKey = null, ?int $timeout = null)
{
// If somebody pass '' into the constructor, we should use '' as the api key
// even if it doesn't make sense.
Expand Down

0 comments on commit b0000b6

Please sign in to comment.