TimeLine: Always parse `int` to validateTime()

Php < 8.1 converts fetched time(stamp) to string. This must always be an int.
This commit is contained in:
Sukhwinder Dhillon 2023-06-09 16:20:40 +02:00 committed by Johannes Meyer
parent c40cfb41a8
commit ea1e5f9245
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ class TimeLine implements IteratorAggregate
return array_filter( return array_filter(
$this->resultset, $this->resultset,
function ($e) use ($range) { function ($e) use ($range) {
return $range->validateTime($e->time); return $range->validateTime((int) $e->time);
} }
); );
} }