Issue #3240958 by andypost, alexpott: template_preprocess_locale_translation_last_check() causes deprecations on PHP 8.1