* 1.x:
bumped version to 1.21.2-DEV
prepared the 1.21.1 release
fixed support for Twig_Test_* classes
bumped version to 1.21.1-DEV
prepared the 1.21.0 release
This PR was merged into the 1.x branch.
Discussion
----------
fixed support for Twig_Test_* classes (regression)
fixes#1791
Commits
-------
9561582 fixed support for Twig_Test_* classes
This PR was merged into the 1.x branch.
Discussion
----------
added a note about TwigFiddle
Not sure where to mention it, the IDE section seems ok.
ping @ninsuo
Commits
-------
bc9911e added a note about TwigFiddle
This PR was merged into the 2.0-dev branch.
Discussion
----------
moved more methods/properties to private
I'd like to make even more properties/methods private in 2.0. We can always put them back to protected if that makes sense.
Commits
-------
905a2a8 moved more methods/properties to private
This PR was merged into the 2.0-dev branch.
Discussion
----------
Faster filesystem loader master
We need to keep calling `findTemplate()` for all methods to keep BC.
Commits
-------
3da99ce removed BC break in filesystem loader
638eedb Revert "removed an unneeded protected method"
This PR was merged into the 1.x branch.
Discussion
----------
optimized the filesystem loader
* added a cache for templates that do not exist
* sped up Filesystem::exists() by avoiding the creation of exceptions
same as d2b97b49f2 that was reverted because of a BC break
and same as what is in 2.0 (but in a BC way).
Commits
-------
21b128a optimized the filesystem loader
This PR was merged into the 2.0-dev branch.
Discussion
----------
Callable typehint
Add callable typehint which are available since php 5.4 so are safe to use in twig 2.0.
Commits
-------
465208d add callable typehints
This PR was merged into the 1.x branch.
Discussion
----------
move property initialization to the declaration when possible
From #1781
Commits
-------
5951d1f move property initialization to the declaration when possible
* added a cache for templates that do not exist
* sped up Filesystem::exists() by avoiding the creation of exceptions
same as d2b97b49f2 that was reverted because of a BC break
and same as what is in 2.0 (but in a BC way).
* 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