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
Stricter typing in PHP 8.1.2 generates warnings when using floats on functions that require an integer. In the past, these conversions happened silently, but in PHP 8.1.2 they generate an error. In PHP 8.1.2, the Cacti get_daysfromtime() generates such warnings.
Expected behavior
Less warnings in Cacti
The text was updated successfully, but these errors were encountered:
netniV
changed the title
Work around stricter typing in PHP 8.1.2 when performing some date calculations
Add date calculation support for PHP 8
Apr 4, 2022
Describe the bug
Stricter typing in PHP 8.1.2 generates warnings when using floats on functions that require an integer. In the past, these conversions happened silently, but in PHP 8.1.2 they generate an error. In PHP 8.1.2, the Cacti get_daysfromtime() generates such warnings.
Expected behavior
Less warnings in Cacti
The text was updated successfully, but these errors were encountered: