Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #1769 Deprecation notices (fabpot, nicolas-grekas)
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
- Loading branch information
Showing
57 changed files
with
491 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,33 @@ | ||
language: php | ||
|
||
php: | ||
- 5.2 | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- hhvm | ||
- nightly | ||
- 5.2 | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- hhvm | ||
- nightly | ||
|
||
allow_failures: | ||
- php: nightly | ||
|
||
env: | ||
- TWIG_EXT=no | ||
- TWIG_EXT=yes | ||
- TWIG_EXT=no | ||
- TWIG_EXT=yes | ||
|
||
before_script: | ||
- if [ "$TWIG_EXT" == "yes" ]; then sh -c "cd ext/twig && phpize && ./configure --enable-twig && make && sudo make install"; fi | ||
- if [ "$TWIG_EXT" == "yes" ]; then echo "extension=twig.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`; fi | ||
- if [ "$TWIG_EXT" == "yes" ]; then sh -c "cd ext/twig && phpize && ./configure --enable-twig && make && sudo make install"; fi | ||
- if [ "$TWIG_EXT" == "yes" ]; then echo "extension=twig.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`; fi | ||
- if [ ${TRAVIS_PHP_VERSION:0:3} == "5.2" ]; then sed -i.bak "s|vendor/autoload.php|test/bootstrap.php|" phpunit.xml.dist; fi | ||
|
||
install: | ||
# Composer is not available on PHP 5.2 | ||
- if [ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]; then travis_retry composer install; fi | ||
|
||
matrix: | ||
exclude: | ||
- php: hhvm | ||
env: TWIG_EXT=yes | ||
- php: nightly | ||
env: TWIG_EXT=yes | ||
exclude: | ||
- php: hhvm | ||
env: TWIG_EXT=yes | ||
- php: nightly | ||
env: TWIG_EXT=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.