Commit Graph

3853 Commits

Author SHA1 Message Date
Eric MORAND 4eb40f2fc8 Fix issue #3160 2019-10-01 12:13:28 +02:00
Fabien Potencier 4d766ec17b bug #3155 Optimize block('foo') ?? 'bar' (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Optimize block('foo') ?? 'bar'

closes #3154

Commits
-------

7a99a4e7 Optimize block('foo') ?? 'bar'
2019-09-20 14:45:25 +02:00
Fabien Potencier 7a99a4e7e5 Optimize block('foo') ?? 'bar' 2019-09-20 12:40:56 +02:00
Fabien Potencier 144c557bb1 bumped version to 1.42.4-DEV 2019-08-24 14:51:38 +02:00
Fabien Potencier 201baee843 prepared the 1.42.3 release v1.42.3 2019-08-24 14:51:03 +02:00
Fabien Potencier 743135fcc1 updated ChANGELOG 2019-08-24 14:49:29 +02:00
Fabien Potencier 5ed74a1bae bug #3105 Handle opcache_invalidate() being disabled on shared hosting platforms (RhvsW)
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes #3105).

Discussion
----------

Handle opcache_invalidate() being disabled on shared hosting platforms

This fix makes twig gracefully fail on opcache API being disabled on shared hosting platforms for security reasons.
Tested with Grav CMS.

Commits
-------

349a5f26 Handle opcache_invalidate() being disabled on shared hosting platforms
2019-08-21 07:12:26 +02:00
Rhys 349a5f26c3 Handle opcache_invalidate() being disabled on shared hosting platforms
This fix makes twig gracefully fail on opcache API being disabled on shared hosting platforms for security reasons.
Tested with Grav CMS.
2019-08-21 07:12:20 +02:00
Fabien Potencier a8c77b85a7 added an entry to .gitignore 2019-08-08 18:07:23 +02:00
Fabien Potencier 3ee934ef45 minor #3112 Remove usage of getmockBuilder() when not needed (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Remove usage of getmockBuilder() when not needed

/cc @jderusse

Commits
-------

5861a539 removed usage of getmockBuilder() when not needed
2019-08-08 12:14:28 +02:00
Fabien Potencier 5861a539e4 removed usage of getmockBuilder() when not needed 2019-08-08 11:59:51 +02:00
Fabien Potencier 5aae9ba07a minor #3103 Update PhpUnitBridge and fix deprecations (jderusse)
This PR was merged into the 1.x branch.

Discussion
----------

Update PhpUnitBridge and fix deprecations

This PR:
- update dev dependency to `phpunit-bridge` to `^4.4@dev` in order to get polyfill methods
- fix deprecated tests
- update cs-fixer rule

Commits
-------

b776e41f Update to PhpUnitBridge and fix deprecations
2019-08-08 10:00:23 +02:00
Jérémy Derussé b776e41f5a Update to PhpUnitBridge and fix deprecations 2019-08-08 09:39:49 +02:00
Fabien Potencier 9270385cd2 bumped some deps 2019-08-08 01:33:12 +02:00
Fabien Potencier d1927ade9a fixed CHANGELOG 2019-08-08 00:44:22 +02:00
Fabien Potencier 079e408357 feature #3107 Upgrade minimal version of php (jderusse)
This PR was merged into the 1.x branch.

Discussion
----------

Upgrade minimal version of php

Following this comment https://github.com/twigphp/Twig/pull/3103#issuecomment-519282356
Bump the minimal required version of PHP to 5.5

Commits
-------

074e46ae Upgrade minimal version of php
2019-08-08 00:43:19 +02:00
Jérémy Derussé 074e46ae33 Upgrade minimal version of php 2019-08-08 00:31:49 +02:00
Fabien Potencier ee35a9129d minor #3106 Restore tests on PHP 5.4 (jderusse)
This PR was merged into the 1.x branch.

Discussion
----------

Restore tests on PHP 5.4

Commits
-------

f8eda56c Restore tests on PHP 5.4
2019-08-07 23:51:52 +02:00
Jérémy Derussé f8eda56c69 Restore tests on PHP 5.4 2019-08-07 23:16:00 +02:00
Fabien Potencier c87fe47373 bug #3104 Fix the "empty" test on Traversable instances (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Fix the "empty" test on Traversable instances

closes #3101

Commits
-------

b202fe38 fixed the "empty" test on Traversable instances
2019-08-07 17:07:43 +02:00
Fabien Potencier b202fe3809 fixed the "empty" test on Traversable instances 2019-08-07 17:02:01 +02:00
Fabien Potencier 20d60b5f25 avoid confusion between .. and .. 2019-08-07 16:28:20 +02:00
Fabien Potencier 18458930a5 bug #3097 Fix using array_key_exists() on objects, it is deprecated in PHP 7.4 (nicolas-grekas)
This PR was merged into the 1.x branch.

Discussion
----------

Fix using array_key_exists() on objects, it is deprecated in PHP 7.4

Found as part of https://github.com/symfony/symfony/issues/32844

Commits
-------

d0550b7a Fix using array_key_exists() on objects, it is deprecated in PHP 7.4
2019-08-02 10:08:07 +02:00
Nicolas Grekas d0550b7a68 Fix using array_key_exists() on objects, it is deprecated in PHP 7.4 2019-08-01 16:18:22 +02:00
Fabien Potencier ef4ae447f9 updated CHANGELOG 2019-07-12 09:12:11 +03:00
Fabien Potencier 5c8c41853b tweaked code 2019-07-12 09:11:27 +03:00
Fabien Potencier dfde2f4e85 bug #3087 Extend opcache check if it is enabled (vosco88)
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
2019-07-12 09:09:49 +03:00
vosco88 6e68bd0815 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.
2019-07-12 09:09:42 +03:00
Fabien Potencier c41d567956 minor #3081 Fix tests for PHP 7.4 (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Fix tests for PHP 7.4

Commits
-------

0947777b fixed tests for PHP 7.4
2019-06-30 15:34:28 +02:00
Fabien Potencier 0947777bc6 fixed tests for PHP 7.4 2019-06-30 15:21:28 +02:00
Fabien Potencier 22a1317249 moved tests under tests/ 2019-06-30 14:48:27 +02:00
Fabien Potencier 08513fe422 fixed typo 2019-06-30 14:41:41 +02:00
Fabien Potencier e175aebc96 fixed CS 2019-06-30 13:31:59 +02:00
Fabien Potencier af3526735c minor #3080 Move tests to a namespace structure (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Move tests to a namespace structure

Commits
-------

2119e60c moved tests to a namespace structure
2019-06-30 12:40:14 +02:00
Fabien Potencier 2119e60cf7 moved tests to a namespace structure 2019-06-30 12:39:00 +02:00
Fabien Potencier ded92c0bc2 minor #3078 Add Blackfire as a sponsor (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Add Blackfire as a sponsor

Commits
-------

8c7a0e9a added Blackfire as a sponsor
2019-06-28 17:38:31 +02:00
Fabien Potencier 8c7a0e9a50 added Blackfire as a sponsor 2019-06-28 17:37:46 +02:00
Fabien Potencier 6b8aacd7c3 tweaked an example in the docs 2019-06-27 07:31:21 +02:00
Fabien Potencier 533225072c minor #3077 Replace dirname(__FILE__) with usage of __DIR__ in test fixtures (SenseException)
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
2019-06-27 07:29:58 +02:00
Claudio Zizza ea7c66447d Use dir constant for fixtures 2019-06-27 07:29:52 +02:00
Fabien Potencier 8b6100d63c minor #3070 [doc] "map" filter: fix args order (value, key) (guilliamxavier)
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)
2019-06-25 12:53:18 +02:00
Fabien Potencier 5e74239e8c fixed CS 2019-06-25 07:36:40 +02:00
Fabien Potencier 7ef3203f16 bug #3075 [1.x] Patch split filter (adriansuter)
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
2019-06-25 07:35:04 +02:00
Adrian Suter 4c4df962ee [1.x] Patch split filter 2019-06-25 07:34:58 +02:00
Guilliam Xavier d01e7e0fed [doc] "map" filter: fix args order (value, key) 2019-06-24 12:54:09 +02:00
Fabien Potencier 40f703ab40 minor #3069 [Doc] Minor fixes and removed belittling words (javiereguiluz)
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
2019-06-20 13:51:09 +02:00
Javier Eguiluz 270d4a57a2 [Doc] Minor fixes and removed belittling words 2019-06-20 13:32:09 +02:00
Fabien Potencier 5c9ec4d4a3 bumped version to 1.42.3-DEV 2019-06-18 17:36:05 +02:00
Fabien Potencier 21707d6ebd prepared the 1.42.2 release v1.42.2 2019-06-18 17:35:16 +02:00
Fabien Potencier 8c4b748f23 minor #3062 Escape __DIR__ in the test suite (lyrixx)
This PR was merged into the 1.x branch.

Discussion
----------

Escape __DIR__ in the test suite

Commits
-------

fa0213a9 Escape __DIR__ in the test suite
2019-06-11 11:40:08 +02:00