This PR was merged into the 2.0-dev branch.
Discussion
----------
Remove reference to `String` loader in docs
Commits
-------
02a7bd6 Remove reference to `String` loader in docs
This PR was merged into the 2.0-dev branch.
Discussion
----------
Add Twig_ExistsLoaderInterface back for 1.x BC layer #1644
This is the 2.x change for 1.x BC layer of Twig_ExistsLoaderInterface for #1644
Commits
-------
3e546c9 Add Twig_ExistsLoaderInterface back for 1.x BC layer
This PR was merged into the 2.0-dev branch.
Discussion
----------
Fix the profiler node visitor signature for Twig 2.0
Commits
-------
e66b07d Fix the profiler node visitor signature for Twig 2.0
This PR was merged into the 2.0-dev branch.
Discussion
----------
Twig_Template::getContext() removal
`Twig_Template::getContext()` is an implementation detail as it is only used on some PHP versions, for some cases. But even with the big warning in the phpdoc, people want to use it, which is a really bad idea. Removing it in 1.x would be kind of a "BC break", so I propose to remove it in 2.0.
Commits
-------
a0261e7 removed code that people want to overide over and over again
This PR was submitted for the master branch but it was merged into the 1.x branch instead (closes#1666).
Discussion
----------
add ignore_missing agrument to source function
This basically works the same way as `ignore_missing` on the `include` function/tag.
Commits
-------
afa9358 add ignore_missing agrument to source function
* 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
This PR was merged into the 1.x branch.
Discussion
----------
fixed sandbox disabling when using the include function
closes#1668
Commits
-------
af72894 fixed sandbox disabling when using the include function
This PR was submitted for the master branch but it was merged into the 1.x branch instead (closes#1720).
Discussion
----------
Example about how to rename several blocks
It was unclear to me how to rename more than 1 imported block. I had to look into the source code to find that, so I add it to the documentation.
Commits
-------
8af1355 Example about how to rename several blocks
This PR was merged into the 1.x branch.
Discussion
----------
fix batch filter with zero items
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| License | MIT
also added a test for preserving keys behavior
Commits
-------
8d6be28 fix batch filter with zero items
This PR was merged into the 1.x branch.
Discussion
----------
Fix PHP_FE_END value
See explanation on rev c41d305
Commits
-------
a1eee07 Fix PHP_FE_END value
* 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 submitted for the master branch but it was merged into the 1.x branch instead (closes#1624).
Discussion
----------
Organize and show value types
I was a little confused about how `auto_reload` and what kind of types you had to provide. Hope this helps to clarify that for others.
Should it also say something about how `cache: true` and `auto_reload: true` works together, as that is a question i have myself :)
Commits
-------
0a46d06 Organize and show value types
This PR was merged into the 1.x branch.
Discussion
----------
Use mocks for profiles. Fixes#1660
| Q | A
| ------------- | ---
| Bug fix? | yes #1660
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| License | MIT
This PR aims to change the getProfile() method to returns mocks.
This fixes#1660
BTW Is there a specific reason why there are no mocks for the tests in the project ?
Commits
-------
f6bce94 Use stubs for profiles. Fixes#1660
This PR was merged into the 1.x branch.
Discussion
----------
Fixed error guessing for nested templates
Commits
-------
00fe940 Fixed CS
dd1b101 Fixed error guessing for nested templates
This PR was merged into the 1.x branch.
Discussion
----------
Travis no longer supports hhvm-nightly
See travis-ci/travis-ci#3788
Commits
-------
329d67c Travis no longer supports hhvm-nightly