Skip to content

Commit

Permalink
fix: static analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
phanan committed May 31, 2024
1 parent 7d1a4e2 commit aaadcf8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ includes:
parameters:
paths:
- src/
- tests/

level: 5
2 changes: 1 addition & 1 deletion src/Poddle.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(public readonly string $xml)
public static function fromUrl(string $url, int $timeoutInSeconds = 30, ClientInterface $client = null): self
{
$xml = $client
? $client->sendRequest(new Request('GET', $url, ['timeout' => $timeoutInSeconds]))->getBody()
? $client->sendRequest(new Request('GET', $url, ['timeout' => (string) $timeoutInSeconds]))->getBody()
: Http::timeout($timeoutInSeconds)->get($url)->body();

return new self((string) $xml);
Expand Down

0 comments on commit aaadcf8

Please sign in to comment.