Skip to content

Commit

Permalink
Add casting to getLastRestart method (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
glioympas authored Jul 12, 2024
1 parent 73cc61a commit 8986acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Consumers/Consumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 8986acd

Please sign in to comment.