Skip to content

Commit

Permalink
Fix type hinting in retry functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ksvirkou-hubspot committed Nov 15, 2023
1 parent 529f3cf commit febcdf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/RetryMiddlewareFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static function getRetryFunctionByRange(
$retries,
Request $request,
Response $response = null,
RequestException $exception = null
?RequestException $exception = null
) use ($from, $to, $maxRetries) {
if ($retries >= $maxRetries) {
return false;
Expand All @@ -85,7 +85,7 @@ public static function getRetryFunction(array $codes, int $maxRetries = 5)
$retries,
Request $request,
Response $response = null,
RequestException $exception = null
?RequestException $exception = null
) use ($codes, $maxRetries) {
if ($retries >= $maxRetries) {
return false;
Expand Down

0 comments on commit febcdf9

Please sign in to comment.