From bd8fdb2d9baebcf493181cf2c134813ba0a0b556 Mon Sep 17 00:00:00 2001 From: Helen Shaw Date: Mon, 15 Jul 2019 10:21:57 +0100 Subject: [PATCH] Make php 5.4 compatible --- src/Middleware/Retry/NonBlockingRetryMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Middleware/Retry/NonBlockingRetryMiddleware.php b/src/Middleware/Retry/NonBlockingRetryMiddleware.php index 609ce8c..4ff3b1d 100644 --- a/src/Middleware/Retry/NonBlockingRetryMiddleware.php +++ b/src/Middleware/Retry/NonBlockingRetryMiddleware.php @@ -100,7 +100,7 @@ private function getMessageOptions(Message $message) * @param int $attempts * @return int The number of seconds to wait until next attempt */ - private function getBackoffPeriod(int $attempts) + private function getBackoffPeriod($attempts) { return (pow($attempts, 4) + 15 + (rand(1, 30) * ($attempts + 1))); }