PHP8.1 compatiblity / implicit float to int cast

Created on 21 September 2022, about 2 years ago
Updated 27 September 2023, about 1 year ago

Sometimes the $metadata['timestamp'] could be a float (microtime(true) / $_REQUEST['REQUEST_TIME_FLOAT']) and the current implicit conversion for gmdate() causes issues in PHP8.1+. This small patch makes this conversion explicit.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇳🇱Netherlands Gekkie

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024