Skip to content

Commit

Permalink
fix: typehint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bhushan committed Aug 21, 2023
1 parent f0797e4 commit 5229e30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Treblle.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function onShutdown(): void
}

/** @todo come up with some kind of fallback to be sent if we cannot convert array to json */
$payload = [];
$payload = '{}';
}

if (!\function_exists('pcntl_fork')) {
Expand Down Expand Up @@ -180,7 +180,7 @@ public function getBaseUrl(): string
return $urls[array_rand($urls)];
}

private function collectData($payload): void
private function collectData(string $payload): void
{
try {
$this->guzzle->request(
Expand Down

0 comments on commit 5229e30

Please sign in to comment.