This PR was merged into the 1.x branch.
Discussion
----------
Traversable support for 'replace', 'merge' and 'sort'
Add traversable support to:
* replace
* merge
* sort
Other changes:
* Removes some not need checks
* ~~Make unit test skip if it cannot write to cache because of the user running the test~~
* Tests added for traversable support
* Doc updates
Deprecating:
I think the undocumented (and multibyte not supported) use of `replace(string, string)` can be removed in Twig 2.0.
Adding MB support and documentation of the feature was turned down (https://github.com/twigphp/Twig/pull/1618)
However removing it is a BC break (https://github.com/twigphp/Twig/pull/1445#issuecomment-48746926)
Commits
-------
2a17303 Mark test skipped if cannot write to cache directory.
* 1.x:
simplified tests
added Twig_Util_DeprecationCollector to collect deprecation notices for a set of templates
tweaked some deprecation messages
added deprecation notices for deprecated classes
optimized legacy tests management
added a way to manage legacy tests in fixtures
removed usage of deprecated features, marked some tests as being legacy
added the Symfony PHPUnit bridge to better manage deprecation notices
added deprecated notices for deprecated features
added some documentation about deprecation notices
added a way to trigger deprecation notices for filters and functions
added deprecation for the raw tag
added deprecation notices for deprecated tests
fixed CS
Optimize the retrieval of reserved macro names
Remove dead code
added the raw tag as being deprecated
replaced obsolete raw tag by verbatim in tests
* 1.x:
deprecated _self
added a base node visitor to make compat between 1.x and 2.x possible
bumped to 1.20
added a mention of projects using Twig
bumped version to 1.19.1-DEV
prepared the 1.19.0 release
updated CHANGELOG
Fixed error guessing in blocks in a child template
fixed CS
tweaked docs
fixed CS
bumped version to 1.19
Added support for unconsumed macro arguments
Added variadic filters, tests, and functions
This PR was merged into the 1.x branch.
Discussion
----------
Added support for unconsumed macro arguments
Fixes#1159 and supplements #1699
Commits
-------
7f00cb9 Added support for unconsumed macro arguments
* 1.x:
fixed edge case where tests would fail because of a cache issue
tweaked docs to avoid using an internal method in an example
deprecated Twig_Environment::clearTemplateCache()
fixed sandbox disabling when using the include function
Example about how to rename several blocks
fixed docs
Update batch filter docs with arguments
* 1.x:
updated CHANGELOG
reverted unexpected change
fixed previous merge
Organize and show value types
Added label for "Whitespace Control" section
Added note about case sensitivity of logic operators
Fixed CS
Fixed error guessing for nested templates
Travis no longer supports hhvm-nightly
fixed CS
Added an example for "and" on if statment
Updated exception messages for null vars in Twig_Template::getAttribute().
Use stubs for profiles. Fixes#1660
Conflicts:
doc/api.rst
This PR was merged into the 1.x branch.
Discussion
----------
Added note about case sensitivity of logic operators
Commits
-------
29986a9 Added note about case sensitivity of logic operators
* 1.x:
Fix two failed unit tests on Windows:
updated CHANGELOG
Reduce the name of the cache directories to 1 character
clean ups
bumped version to 1.18.2-DEV
prepared the 1.18.1 release
updated CHANGELOG
Cleanup API - make the compiler happy
Fixed memory leaks
tweaked docs about the C extension
removed an obsolete recipe
Conflicts:
CHANGELOG
doc/api.rst
doc/recipes.rst
ext/twig/php_twig.h
lib/Twig/Environment.php
lib/Twig/NodeTraverser.php
lib/Twig/Template.php