Commit Graph

3883 Commits

Author SHA1 Message Date
JakeFr fbfac78fbd Syntax error in doc
This code sample in advanced.rst is not highlighted in php because the second semicolon is missing
2020-01-13 08:58:15 +01:00
Fabien Potencier 0ee1c7081c minor #3240 Fix versionadded in doc (fancyweb)
This PR was merged into the 1.x branch.

Discussion
----------

Fix versionadded in doc

I think those versionadded blocks don't show because they have a typo.

Commits
-------

6b25dccf Fix versionadded in doc
2020-01-11 16:39:51 +01:00
fancyweb 6b25dccf33 Fix versionadded in doc 2020-01-11 12:21:32 +01:00
Fabien Potencier ca4d96b7b7 bug #3237 Replace strtolower() with strtr() when dealing with method names (mpdude)
This PR was squashed before being merged into the 1.x branch (closes #3237).

Discussion
----------

Replace strtolower() with strtr() when dealing with method names

This is to improve consistency with the implementation of case-insensitivity for method names etc. in the Zend Engine: In fact, the ZE does not apply the internal `strtolower` implementation, but just maps ASCII `A-Z` to `a-z`.

This was done in https://github.com/php/php-src/commit/582514d4c7b216dbdc7a8429962cf3e5776206f0 to fix issues like https://bugs.php.net/bug.php?id=18556.

Additionally, `strtok` might give a tiny (measurable?) performance gain over `strtolower`, plus it is not locale-dependant.

Commits
-------

30feddef Replace strtolower() with strtr() when dealing with method names
2020-01-08 09:27:15 +01:00
Matthias Pigulla 30feddef10 Replace strtolower() with strtr() when dealing with method names 2020-01-08 09:27:07 +01:00
Fabien Potencier 54be566c04 Bump license year 2020-01-01 18:09:02 +01:00
Fabien Potencier 82362775bb minor #3224 Update doc with new escaping behavior on ternary statements (l-vo)
This PR was submitted for the 3.x branch but it was merged into the 1.x branch instead (closes #3224).

Discussion
----------

Update doc with new escaping behavior on ternary statements

According to https://symfony.com/blog/better-white-space-control-in-twig-templates#fine-grained-escaping-on-ternary-expressions

Commits
-------

92e1cd35 Update doc with new escaping behavior
2019-12-27 08:28:59 +01:00
Laurent VOULLEMIER 92e1cd35c5 Update doc with new escaping behavior
When applied on ternary statements
2019-12-27 08:28:48 +01:00
Fabien Potencier 1a874b581a Remove obsolete page 2019-12-20 13:14:10 +01:00
Fabien Potencier 0a5fd1762a minor #3223 Remove the (feldenla)
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes #3223).

Discussion
----------

Remove `the`

Remove the article `the` to make a correct statement.

Commits
-------

8b8cfb0f language typo
2019-12-20 13:13:13 +01:00
feldenla 8b8cfb0f4e language typo 2019-12-20 13:13:08 +01:00
Fabien Potencier 335dcad4b0 Add missing link in docs 2019-12-09 17:35:58 +01:00
Fabien Potencier e45476d9d0 minor #3215 [Minor] Correct return type of twig_date_converter (mcfedr)
This PR was submitted for the 3.x branch but it was merged into the 1.x branch instead (closes #3215).

Discussion
----------

[Minor] Correct return type of twig_date_converter

if a `\DateTimeImmutable` is passed to `twig_date_converter` it will return a `\DateTimeImmutable`, not a `\DateTime`.

Commits
-------

e927e859 Correct return type of twig_date_converter
2019-12-09 17:33:13 +01:00
Fred Cox e927e859ea Correct return type of twig_date_converter 2019-12-09 17:33:08 +01:00
Fabien Potencier 3853841c9f minor #3206 Fix tests (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Fix tests

Commits
-------

8a6010f6 Fix tests
2019-11-28 15:02:09 +01:00
Fabien Potencier 8a6010f695 Fix tests 2019-11-28 14:58:09 +01:00
Fabien Potencier badf167c2c minor #3200 Remove mentions of the obsolete twig-extensions repository (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Remove mentions of the obsolete twig-extensions repository

Commits
-------

7f48a181 Remove mention of the obsolete twig-extensions repository
2019-11-18 18:28:41 +01:00
Fabien Potencier 7f48a181cd Remove mention of the obsolete twig-extensions repository 2019-11-18 18:27:43 +01:00
Fabien Potencier 8208cc20fe minor #3196 Remove usage of the old Autoloader class in the docs (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Remove usage of the old Autoloader class in the docs

Commits
-------

240e967c Remove usage of the old Autoloader class in the docs
2019-11-15 16:46:00 +01:00
Fabien Potencier 240e967c61 Remove usage of the old Autoloader class in the docs 2019-11-15 16:44:44 +01:00
Fabien Potencier 69030c7fb5 Fixed doc markup 2019-11-15 13:37:35 +01:00
Fabien Potencier 4a773f923f Bump version to 1.42.5-DEV 2019-11-11 17:50:21 +01:00
Fabien Potencier e587180584 Prepare the 1.42.4 release v1.42.4 2019-11-11 17:49:32 +01:00
Fabien Potencier 8f9c0b3267 feature #3182 Add support for exponential numbers (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Add support for exponential numbers

Commits
-------

60921350 Add support for exponential numbers
2019-11-07 22:14:12 +01:00
Fabien Potencier 6092135057 Add support for exponential numbers 2019-10-22 17:32:36 +02:00
Fabien Potencier 2024406e8e Fix phpdoc 2019-10-17 09:32:17 +02:00
Fabien Potencier e05aa6a489 Add .gitattributes 2019-10-17 09:29:33 +02:00
Fabien Potencier 8909a16264 minor #3163 Fix issue #3159 (ericmorand)
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes #3163).

Discussion
----------

Fix issue #3159

Commits
-------

cfac11e9 Fix issue #3159
2019-10-01 12:18:05 +02:00
Eric MORAND cfac11e98a Fix issue #3159 2019-10-01 12:18:00 +02:00
Fabien Potencier 0d2b2aabf6 minor #3164 Fix issue #3160 (ericmorand)
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes #3164).

Discussion
----------

Fix issue #3160

Commits
-------

4eb40f2f Fix issue #3160
2019-10-01 12:13:33 +02:00
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