see #19343
This seems to be the only change that is strictly required for Matomo to be mostly useable in PHP 8.2