This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes#3087).
Discussion
----------
Extend opcache check if it is enabled
When trying to deploy October on shared hosting (www.websupport.sk) I received following error when accessing the frontend pages - ErrorException:> Zend OPcache API is restricted by "restrict_api" configuration directive.
Backend was working normally.
I propose the following change to check not only if the opcache_invalidate exists but also if opcache is enabled.
The change was also needed in octobercms files, but to correspond I am also proposing to add it directly to twig.
Commits
-------
6e68bd08 Extend opcache check if it is enabled
When trying to deploy October on shared hosting (www.websupport.sk) I received following error when accessing the frontend pages - ErrorException:> Zend OPcache API is restricted by "restrict_api" configuration directive.
Backend was working normally.
I propose the following change to check not only if the opcache_invalidate exists but also if opcache is enabled.
The change was also needed in octobercms files, but to correspond I am also proposing to add it directly to twig.
This PR was merged into the 1.x branch.
Discussion
----------
Move tests to a namespace structure
Commits
-------
2119e60c moved tests to a namespace structure
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes#3077).
Discussion
----------
Replace dirname(__FILE__) with usage of __DIR__ in test fixtures
Commits
-------
ea7c6644 Use dir constant for fixtures
This PR was merged into the 1.x branch.
Discussion
----------
[doc] "map" filter: fix args order (value, key)
Commits
-------
d01e7e0f [doc] "map" filter: fix args order (value, key)
This PR was squashed before being merged into the 1.x branch (closes#3075).
Discussion
----------
[1.x] Patch split filter
This PR addresses #3072 vor Twig 1.x.
Commits
-------
4c4df962 [1.x] Patch split filter
This PR was merged into the 1.x branch.
Discussion
----------
[Doc] Minor fixes and removed belittling words
Commits
-------
270d4a57 [Doc] Minor fixes and removed belittling words
This PR was merged into the 1.x branch.
Discussion
----------
Escape __DIR__ in the test suite
Commits
-------
fa0213a9 Escape __DIR__ in the test suite
This PR was squashed before being merged into the 1.x branch (closes#3059).
Discussion
----------
Don't clear PHP buffer when an error occurs with debug=true
fixes#3058
Commits
-------
c910e71f Don't clear PHP buffer when an error occurs with debug=true
This PR was merged into the 1.x branch.
Discussion
----------
Fix end of constructor node logic
Commits
-------
8a29b42d fixed end of constructor node logic
This PR was merged into the 1.x branch.
Discussion
----------
Add support for "Twig\Markup" instances in the "in" test (again)
Commits
-------
2218cfe2 added support for "Twig\Markup" instances in the "in" test (again)
This PR was submitted for the 2.x branch but it was squashed and merged into the 1.x branch instead (closes#3047).
Discussion
----------
Update the documentation for newly added features
The `map`, `filter` and `reduce` functions were added in Twig 1.41 and 2.10, but the documentation for `map` and `reduce` did not contain the information in which 2.x version these functions were added.
This minor PR fixes this.
Commits
-------
bf518d2c Update the documentation for newly added features
This PR was merged into the 1.x branch.
Discussion
----------
Allow string operators as variables names in assignments
closes#3041
Commits
-------
5835c234 allowed string operators as variables names in assignments
This PR was merged into the 1.x branch.
Discussion
----------
Use v5.0 of the phpunit bridge
Not critical but still better IMHO :)
Commits
-------
2e6f74af Use v5.0 of the phpunit bridge