Skip to content

Commit

Permalink
Resolve issue with php strict type
Browse files Browse the repository at this point in the history
related to the issue laravel#1109
  • Loading branch information
farmani authored Jan 1, 2022
1 parent 251a5cc commit 10155a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repositories/RedisMetricsRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ protected function baseSnapshotData($key)
*/
protected function minutesSinceLastSnapshot()
{
$lastSnapshotAt = $this->connection()->get('last_snapshot_at')
$lastSnapshotAt = (int)$this->connection()->get('last_snapshot_at')
?: $this->storeSnapshotTimestamp();

return max(
Expand Down

0 comments on commit 10155a6

Please sign in to comment.