* 1.x:
fix escaping strategy that is an array but not a callable
use travis cache for composer and fast finish
fix php 5.2 compatibility
enhance travis setup
Add missing deprecation triggers
Fix the deprecation warning for functions and tests
bumped version to 1.21
avoid a PHPUnit message when no legacy tests are in the test suite
This PR was merged into the 1.x branch.
Discussion
----------
Add missing deprecation triggers
Assetic is extending the ``Twig_Function`` class directly currently, and this was not triggering any deprecation warning
Commits
-------
cb98576 Add missing deprecation triggers
This PR was merged into the 1.x branch.
Discussion
----------
enhance travis setup
- require php 7 to pass
- allow failures for php7 + twig extension
- use container-based infrastructure
- <del>composer self-update to get rid of the outdated warning</del>
- add travis cache for composer
- use travis fast finish
Commits
-------
11baf55 use travis cache for composer and fast finish
7b579df fix php 5.2 compatibility
118598e enhance travis setup
- require php 7 pass (except with extension)
- use container-based infrastructure
- composer self-update to get rid of the outdated warning
- install --prefer-source because travis auth fails against dist
This PR was merged into the 1.x branch.
Discussion
----------
Fix the deprecation warning for functions and tests
Otherwise, when a function does not define any filter, the message looks like that:
```
Using an instance of "Twig_Environment" for function "nelmio_js_logger" is deprecated. Use Twig_SimpleFunction instead.
```
This happens because the notice about the undefined variable gets silenced too, and ``get_class(null)`` returns the current class.
Commits
-------
1687097 Fix the deprecation warning for functions and tests
* 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
This PR was merged into the 1.x branch.
Discussion
----------
Deprecation notices
Added a way to warn our users of deprecation features. This framework can be used for core features, but also for functions/tests/filters created by third-party. I haven't added something for tags as it can be done easily in the token parser class.
Fixes#1756 and #1767
Commits
-------
56c7382 added Twig_Util_DeprecationCollector to collect deprecation notices for a set of templates
2da6bae tweaked some deprecation messages
cc98028 added deprecation notices for deprecated classes
c6ab7de optimized legacy tests management
eebfdc7 added a way to manage legacy tests in fixtures
8c4291a removed usage of deprecated features, marked some tests as being legacy
b5db9dc added the Symfony PHPUnit bridge to better manage deprecation notices
23c3922 added deprecated notices for deprecated features
bd87ba8 added some documentation about deprecation notices
d16b7bf added a way to trigger deprecation notices for filters and functions
21f536b added deprecation for the raw tag
efcfe8e added deprecation notices for deprecated tests
65e70a2 fixed CS
This PR was merged into the 2.0-dev branch.
Discussion
----------
Remove the reserved macro names
Replaces #1765 and #1766
Commits
-------
23a7b6f Remove the reserved macro names
This PR was merged into the 1.x branch.
Discussion
----------
Optimize the retrieval of reserved macro names
The list of reserved names does not need to be reset for each template compilation.
Commits
-------
c267257 Optimize the retrieval of reserved macro names
This PR was merged into the 1.x branch.
Discussion
----------
Remove dead code
Array keys cannot be objects in PHP.
Commits
-------
a07ac6a Remove dead code
This PR was merged into the 1.x branch.
Discussion
----------
Remove broken code
https://github.com/twigphp/Twig/commit/651613c32c315bbeb330b2a6354b34c288e9ea0a#diff-841d1051670799376e88c87114d2caf0 broke the code of ``Twig_Node_Module::compileLoadTemplate`` when passing a non-constant node (it triggers a fatal error)
Trait templates can only be constant expression nodes, so fixing the broken is not actually needed and it can be removed.
Given it is a protected method, I haven't changed the signature to typehint the node as a Twig_Node_Expression_Constant
Commits
-------
e6ae0d0 Remove broken code
This PR was submitted for the master branch but it was merged into the 1.x branch instead (closes#1762).
Discussion
----------
[doc/recipes] Added OPcache support
OPcache enabled by default cache sinse PHP 5.5.
Commits
-------
1f3fb9a [doc/recipes] Added OPcache support