added PHP 8.1 as experimental

This commit is contained in:
Oleg Andreyev
2021-03-21 01:53:45 +02:00
committed by Fabien Potencier
parent ad02eb9236
commit bef89dcc1e
5 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ class Environment
], $options);
$this->debug = (bool) $options['debug'];
$this->charset = strtoupper($options['charset']);
$this->charset = null === $options['charset'] ? null : strtoupper($options['charset']);
$this->baseTemplateClass = $options['base_template_class'];
$this->autoReload = null === $options['auto_reload'] ? $this->debug : (bool) $options['auto_reload'];
$this->strictVariables = (bool) $options['strict_variables'];