This commit is contained in:
Fabien Potencier
2019-05-18 06:14:51 +02:00
parent d0c65c3a82
commit f31aa2185b
+1 -1
View File
@@ -337,7 +337,7 @@ class Parser implements \Twig_ParserInterface
if (null !== $this->peekBlockStack()) {
foreach ($this->importedSymbols as $functions) {
if (isset($functions[$type][$alias])) {
if (count($this->blockStack) > 1) {
if (\count($this->blockStack) > 1) {
return null;
}