You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Get the number of minutes passed since the last snapshot. * * @return float */protectedfunctionminutesSinceLastSnapshot()
{
$lastSnapshotAt = $this->connection()->get('last_snapshot_at')
?: $this->storeSnapshotTimestamp();
returnmax(
(CarbonImmutable::now()->getTimestamp() - $lastSnapshotAt) / 60, 1
);
}
it seems in the given block $lastSnapshotAt is string the workaround is casting it to int but the bug is probably in get() method which is probably return string value for last_snapshot_at and it must be converted to int
Steps To Reproduce:
The text was updated successfully, but these errors were encountered:
farmani
added a commit
to farmani/horizon
that referenced
this issue
Jan 1, 2022
Description:
it seems in the given block
$lastSnapshotAt
is string the workaround is casting it to int but the bug is probably inget()
method which is probably return string value forlast_snapshot_at
and it must be converted to intSteps To Reproduce:
The text was updated successfully, but these errors were encountered: