mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-15 08:16:19 +00:00
Rename hash to mapping
This commit is contained in:
@@ -49,7 +49,7 @@ class WithNode extends Node
|
||||
->raw(";\n")
|
||||
->write(\sprintf("if (!is_iterable(\$%s)) {\n", $varsName))
|
||||
->indent()
|
||||
->write("throw new RuntimeError('Variables passed to the \"with\" tag must be a hash.', ")
|
||||
->write("throw new RuntimeError('Variables passed to the \"with\" tag must be a mapping.', ")
|
||||
->repr($node->getTemplateLine())
|
||||
->raw(", \$this->getSourceContext());\n")
|
||||
->outdent()
|
||||
|
||||
Reference in New Issue
Block a user