From 8986acd4c53090f4d23814beac3489673c4d56dc Mon Sep 17 00:00:00 2001 From: George Lioumpas Date: Fri, 12 Jul 2024 18:52:48 +0300 Subject: [PATCH] Add casting to getLastRestart method (#298) --- src/Consumers/Consumer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Consumers/Consumer.php b/src/Consumers/Consumer.php index 09aa4b81..a1ab8cae 100644 --- a/src/Consumers/Consumer.php +++ b/src/Consumers/Consumer.php @@ -480,6 +480,6 @@ protected function checkForRestart(): void protected function getLastRestart(): int { - return Cache::driver(config('kafka.cache_driver'))->get('laravel-kafka:consumer:restart', 0); + return (int) Cache::driver(config('kafka.cache_driver'))->get('laravel-kafka:consumer:restart', 0); } }