Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Sep 18, 2024
1 parent d7994b1 commit d5f4277
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# 3.15.0 (2024-XX-XX)

* Allow Twig callable argument names to be free-form (snake-case, camelCase, or anything else)
They were automatically converted to snake-cased before
* Add support for argument unpackaging
* Add JSON support for the file extension escaping strategy
* Support Markup instances (and any other \Stringable) as dynamic mapping keys
Expand Down
3 changes: 3 additions & 0 deletions doc/deprecated.rst
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,6 @@ Functions/Filters/Tests
$twig->addFunction(new TwigFunction('upper', 'upper', [
'deprecation_info' => new DeprecatedCallableInfo('twig/twig', '3.12'),
]));

* For variadic arguments, use snake-case for the argument name to ease the
transition to 4.0.

0 comments on commit d5f4277

Please sign in to comment.