'Removing Severity: 8192 from PHP 8.1 error log

Recently upgraded my PHP version from 8.0 to 8.1, now it's displaying tons of error regarding this, mainly

Severity: 8192 --> Implicit conversion from float-string "1651218180.598425" to int loses precision

I have already turned error_reporting for E_DEPRECATED off, but now, I would also like to turn it off for error logs (don't log errors regarding to Severity : 8192).

I know that the proper way is to actually fix it, but this project is 9 years old, the effort required to fix this will be rather huge, so I'm hoping if there's any leeways that can be taken to prevent this from being logged, instead of my final resort of going back to PHP8.0.

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source