Issue #3239860 by alexpott, lauriii: \Drupal\Core\Template\TwigExtension::renderVar() can result in deprecations in PHP 8.1