Issue #3241300 by alexpott: template_preprocess_responsive_image_formatter() causes deprecations on PHP 8.1