Skip to content

Commit

Permalink
Fix deprecation warning for string interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
mbonneau committed Nov 1, 2024
1 parent 078c9ca commit ce6d2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function _reconnect(Observable $attempts)
->flatMap(function (\Throwable $ex) use ($maxRetryDelay, $retryDelayGrowth, $initialRetryDelay) {
$delay = min($maxRetryDelay, pow($retryDelayGrowth, ++$this->currentRetryCount) + $initialRetryDelay);
$seconds = number_format((float)$delay / 1000, 3, '.', '');
echo 'Error: ', $ex->getMessage(), PHP_EOL, "Reconnecting in ${seconds} seconds...", PHP_EOL;
echo 'Error: ', $ex->getMessage(), PHP_EOL, "Reconnecting in {$seconds} seconds...", PHP_EOL;
return Observable::timer((int)$delay);
})
->take($maxRetries);
Expand Down

0 comments on commit ce6d2c3

Please sign in to comment.