Commit Graph

3556 Commits

Author SHA1 Message Date
Fabien Potencier b1894d3df2 do not check sandbox for __toString if method does not exist on object 2019-03-11 12:03:25 +01:00
Fabien Potencier c36cf0db30 minor #2877 Tweak sandbox generated code (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Tweak sandbox generated code

Commits
-------

cbb8f6ed tweaked sandbox generated code
2019-03-11 11:49:33 +01:00
Fabien Potencier cbb8f6edc1 tweaked sandbox generated code 2019-03-11 08:53:51 +01:00
Fabien Potencier af6bdc4b12 fixed indentation of the compiled template 2019-03-11 07:48:38 +01:00
Fabien Potencier 7ce5261621 minor #2873 Improve the performance of the sandbox (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Improve the performance of the sandbox

Commits
-------

5c661869 improved the performance of the sandbox
2019-03-10 10:43:19 +01:00
Fabien Potencier 5c66186979 improved the performance of the sandbox 2019-03-10 10:34:31 +01:00
Fabien Potencier 68bbf5eb85 added a note about the performance of the spaceless filter 2019-03-10 08:59:57 +01:00
Fabien Potencier 83efde6a4d Revert "re-implemented the spaceless tag to reuse the filter tag logic"
This reverts commit 743767bce8.
2019-03-07 10:58:47 +01:00
Fabien Potencier 9956811bbc feature #2872 Add spaceless filter (fabpot)
This PR was squashed before being merged into the 1.x branch (closes #2872).

Discussion
----------

Add spaceless filter

Commits
-------

a22a5c4b fixed CS
743767bc re-implemented the spaceless tag to reuse the filter tag logic
b823898e added a spaceless filter
1ba79416 removed unneeded usage of spaceless in tests
2019-03-07 10:24:21 +01:00
Fabien Potencier a22a5c4bd1 fixed CS 2019-03-07 10:20:57 +01:00
Fabien Potencier 743767bce8 re-implemented the spaceless tag to reuse the filter tag logic 2019-03-07 10:18:51 +01:00
Fabien Potencier b823898ee1 added a spaceless filter 2019-03-07 10:18:51 +01:00
Fabien Potencier 1ba7941656 removed unneeded usage of spaceless in tests 2019-03-07 08:03:42 +01:00
Fabien Potencier 5d79776175 bug #2871 Fix some issues (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Fix some issues

Commits
-------

c58fa840 fixed some issues
2019-03-06 22:09:17 +01:00
Fabien Potencier c58fa84054 fixed some issues 2019-03-06 22:08:00 +01:00
Fabien Potencier 586d5cb411 removed @internal tag on Twig\Template as the whole class is marked as internal 2019-03-06 18:43:55 +01:00
Fabien Potencier 19fd71eadd removed some unneded phpdocs 2019-03-06 18:22:06 +01:00
Fabien Potencier 9b8c3a2344 fixed more un-namespaced classes 2019-03-06 18:10:39 +01:00
Fabien Potencier f75d9891b2 fixed phpdocs 2019-03-06 15:57:47 +01:00
Fabien Potencier 690f53f98c minor #2869 Move some more PSR0 class names to namespaced ones (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Move some more PSR0 class names to namespaced ones

Commits
-------

4eb0c9da moved some more PSR0 class names to namespaced ones
2019-03-06 14:00:13 +01:00
Fabien Potencier 4eb0c9da8e moved some more PSR0 class names to namespaced ones 2019-03-06 13:58:28 +01:00
Fabien Potencier e6b805c80d fixed wrong usage of Error() constructor 2019-03-06 13:22:09 +01:00
Fabien Potencier dbb2183cce minor #2868 Remove mock usage in profile tests (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Remove mock usage in profile tests

Commits
-------

3ae1e0b0 removed mock usage in profile tests
2019-03-06 12:32:50 +01:00
Fabien Potencier 3ae1e0b0f2 removed mock usage in profile tests 2019-03-06 12:31:31 +01:00
Fabien Potencier f16405f797 tweaked docs 2019-03-05 20:08:13 +01:00
Fabien Potencier 5a2c4f2220 feature #2698 Add max value to random function (SpacePossum)
This PR was merged into the 1.x branch.

Discussion
----------

Add max value to random function

Commits
-------

50b27061 Add max value to random function
2019-03-05 20:06:35 +01:00
Fabien Potencier edb99c2e99 fixed typo 2019-03-05 13:46:34 +01:00
Fabien Potencier eaa29417ba fixed doc markup 2019-03-05 11:07:38 +01:00
Fabien Potencier 52e211732f tweaked deprecations messages to use namespaced classes 2019-03-05 10:38:16 +01:00
Fabien Potencier 038809d19f updated CHANGELOG 2019-03-05 10:28:53 +01:00
Fabien Potencier b6d17284cb feature #2862 Switch to namespaces (fabpot)
This PR was squashed before being merged into the 1.x branch (closes #2862).

Discussion
----------

Switch to namespaces

Commits
-------

baa70287 switched to namespace first, PSR-0 as a fallback
aae29ce8 fixed tests for errors
2019-03-05 06:51:10 +01:00
Fabien Potencier baa70287f5 switched to namespace first, PSR-0 as a fallback 2019-03-04 21:33:40 +01:00
Fabien Potencier aae29ce833 fixed tests for errors 2019-03-04 20:21:44 +01:00
Fabien Potencier b6ca450e23 minor #2861 Prepare the switch to namespaces (fabpot)
This PR was squashed before being merged into the 1.x branch (closes #2861).

Discussion
----------

Prepare the switch to namespaces

Commits
-------

0bc26324 fixed class usage
fb6d12f7 fixed deprecation warning when using the namespaced class for extensions
04e16340 fixed namespace typo
26cc50f5 fixed typo
2019-03-04 20:07:23 +01:00
Fabien Potencier 0bc263247c fixed class usage 2019-03-04 19:59:29 +01:00
Fabien Potencier fb6d12f721 fixed deprecation warning when using the namespaced class for extensions 2019-03-04 19:49:48 +01:00
Fabien Potencier 04e1634047 fixed namespace typo 2019-03-04 18:38:09 +01:00
Fabien Potencier 26cc50f5a5 fixed typo 2019-03-04 18:33:32 +01:00
Fabien Potencier 3b98e82f37 minor #2860 Remove PHP 5.4 code (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Remove PHP 5.4 code

Commits
-------

1808776d removed PHP 5.4 code
2019-03-04 18:33:14 +01:00
Fabien Potencier 1808776de8 removed PHP 5.4 code 2019-03-04 18:28:16 +01:00
Fabien Potencier 6c55afeabb minor #2859 clarify the type of returned loaders (xabbuh)
This PR was merged into the 1.x branch.

Discussion
----------

clarify the type of returned loaders

Commits
-------

0eb29aa5 clarify the type of returned loaders
2019-03-04 09:31:39 +01:00
Christian Flothmann 0eb29aa514 clarify the type of returned loaders 2019-03-04 09:18:40 +01:00
Fabien Potencier e57472d80a feature #2858 Add getLoaders() on the chain loader (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Add getLoaders() on the chain loader

Commits
-------

31a549ce added getLoaders() on the chain loader
2019-03-03 20:49:04 +01:00
Fabien Potencier 31a549ce1e added getLoaders() on the chain loader 2019-03-03 19:01:41 +01:00
Fabien Potencier 8ebd8e90d5 minor #2855 Encourage using prepared statements (ntzm)
This PR was submitted for the 2.x branch but it was merged into the 1.x branch instead (closes #2855).

Discussion
----------

Encourage using prepared statements

Although the previous code isn't vulnerable, it could be if copied and used to store user input.

Commits
-------

97d9dc04 Encourage using prepared statements
2019-03-02 08:49:41 +01:00
Nat Zimmermann 97d9dc0404 Encourage using prepared statements 2019-03-02 08:49:36 +01:00
Fabien Potencier ea371bee81 minor #2853 Improve the tag documentation (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Improve the tag documentation

Commits
-------

ab02b24f improved the tag documentation
2019-02-27 08:39:35 +01:00
Fabien Potencier ab02b24f91 improved the tag documentation 2019-02-26 18:57:58 +01:00
Fabien Potencier 4f9d21fbce fixed wrong version in docs 2019-02-25 09:38:34 +01:00
Fabien Potencier f0e30abd79 minor #2852 Improve documentation on tags (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Improve documentation on tags

Commits
-------

571cf6e9 improved documentation on tags
2019-02-25 09:35:53 +01:00