Rename hash to mapping

This commit is contained in:
Fabien Potencier
2024-06-16 17:59:12 +02:00
parent da4592793b
commit 5157402a77
13 changed files with 51 additions and 33 deletions
+1 -1
View File
@@ -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()