Commit Graph

5023 Commits

Author SHA1 Message Date
Alex Longshaw af2ab405f0 Deprecation documentation indentation
Fix the indentation in Errors on "Deprecated Features" and add missing full stop
2020-05-17 14:50:59 +01:00
Fabien Potencier 60e2bda53d Fix an exmaple 2020-05-11 10:19:36 +02:00
Fabien Potencier 124034199e bug #3325 Fix transform call to Michelf\MarkdownExtra (gerryd)
This PR was submitted for the 3.x branch but it was merged into the 2.x branch instead.

Discussion
----------

Fix transform call to Michelf\MarkdownExtra

As per the documentation here:

  https://michelf.ca/projects/php-markdown/configuration/#configure

Calling defaultTransform() will use the default options, thus ignoring
the "hard_wrap" option. Calling transform() instead, which takes the
options into account.

Commits
-------

85a8a47b Fix transform call to Michelf\MarkdownExtra
2020-05-11 10:02:41 +02:00
Gerry Demaret 85a8a47bb1 Fix transform call to Michelf\MarkdownExtra
As per the documentation here:

  https://michelf.ca/projects/php-markdown/configuration/#configure

Calling defaultTransform() will use the default options, thus ignoring
the "hard_wrap" option. Calling transform() instead, which takes the
options into account.
2020-05-11 10:02:35 +02:00
Fabien Potencier de4e46e77e Merge branch '1.x' into 2.x
* 1.x:
  Update api.rst
  Fix typo
  Fix CI on PHP5
2020-04-24 08:31:39 +02:00
Fabien Potencier d69dc2b207 minor #3311 Update api.rst (Yohann76)
This PR was submitted for the 3.x branch but it was squashed and merged into the 1.x branch instead.

Discussion
----------

Update api.rst

formating improve

Commits
-------

abe625a1 Update api.rst
2020-04-24 08:25:23 +02:00
Yohann Durand abe625a1a1 Update api.rst 2020-04-24 08:25:17 +02:00
Fabien Potencier 76e8f1312e Fix typo 2020-04-24 08:24:03 +02:00
Fabien Potencier 889bd071c6 minor #3314 Fix typos (pgrimaud)
This PR was submitted for the 3.x branch but it was merged into the 2.x branch instead.

Discussion
----------

Fix typos

Hello,

This PR will fix :

- 1 typo in `doc/filters/country_name.rst`
- 1 typo in `doc/filters/currency_name.rst`
- 1 typo in `doc/filters/currency_symbol.rst`
- 1 typo in `doc/filters/data_uri.rst`
- 1 typo in `doc/filters/format_currency.rst`
- 1 typo in `doc/filters/format_date.rst`
- 1 typo in `doc/filters/format_datetime.rst`
- 1 typo in `doc/filters/format_number.rst`
- 1 typo in `doc/filters/format_time.rst`
- 1 typo in `doc/filters/html_to_markdown.rst`
- 1 typo in `doc/filters/inky_to_html.rst`
- 1 typo in `doc/filters/inline_css.rst`
- 1 typo in `doc/filters/language_name.rst`
- 1 typo in `doc/filters/locale_name.rst`
- 1 typo in `doc/filters/markdown_to_html.rst`
- 1 typo in `doc/filters/timezone_name.rst`
- 1 typo in `doc/functions/country_timezones.rst`
- 1 typo in `doc/functions/html_classes.rst`
- 1 typo in `doc/tags/macro.rst`
- 1 typo in `extra/html-extra/src/HtmlExtension.php`
- 1 typo in `src/Extension/EscaperExtension.php`

Cheers! 🤖

Commits
-------

02730576 Fix typos
2020-04-24 08:22:36 +02:00
Pierre Grimaud 0273057622 Fix typos 2020-04-24 08:22:30 +02:00
Fabien Potencier f88cbfdd17 minor #3309 Fix CI on PHP5 (nicolas-grekas)
This PR was merged into the 1.x branch.

Discussion
----------

Fix CI on PHP5

Commits
-------

27479d65 Fix CI on PHP5
2020-04-22 23:35:26 +02:00
Nicolas Grekas 27479d6524 Fix CI on PHP5 2020-04-06 19:23:50 +02:00
Fabien Potencier e3ff236877 Fix wrong link 2020-03-31 08:42:10 +02:00
Fabien Potencier f88d55308f minor #3305 Fix CI (nicolas-grekas)
This PR was merged into the 2.x branch.

Discussion
----------

Fix CI

Commits
-------

67ccd626 Fix CI
2020-03-30 15:08:57 +02:00
Nicolas Grekas 67ccd6269e Fix CI 2020-03-30 14:46:07 +02:00
Fabien Potencier 0190450d97 Fix typo 2020-03-30 13:39:48 +02:00
Fabien Potencier 0b8e1a9f4a minor #3304 [docs] CoreExtension::setEscaper is deprecated (SpacePossum)
This PR was merged into the 2.x branch.

Discussion
----------

[docs] CoreExtension::setEscaper is deprecated

Commits
-------

628fde13 [docs] CoreExtension::setEscaper is deprecated
2020-03-30 13:38:49 +02:00
SpacePossum 628fde13ba [docs] CoreExtension::setEscaper is deprecated 2020-03-30 12:14:13 +02:00
XenoX 6df2e2c318 Remove extra Mardown word in classname 2020-03-27 17:41:01 +01:00
Fabien Potencier 27af7d9cd1 Merge branch '1.x' into 2.x
* 1.x:
  fix node class namespace
2020-03-24 13:35:30 +01:00
Fabien Potencier a940d78909 minor #3300 fix node class namespace (xabbuh)
This PR was merged into the 1.x branch.

Discussion
----------

fix node class namespace

Commits
-------

06ff4bdf fix node class namespace
2020-03-24 13:33:44 +01:00
Christian Flothmann 06ff4bdf9a fix node class namespace 2020-03-24 12:12:57 +01:00
Fabien Potencier bf64959fb8 Merge branch '1.x' into 2.x
* 1.x:
  Tweaking phpdoc above Environment
  Identity Equals - Best practices
  Update default.rst
2020-03-17 15:09:30 +01:00
Fabien Potencier 4ba33d8950 minor #3295 Tweaking phpdoc above Environment (weaverryan)
This PR was submitted for the 3.x branch but it was merged into the 1.x branch instead.

Discussion
----------

Tweaking phpdoc above Environment

Super minor. This description is displayed in Symfony's `debug:autowiring` command. It occurred to me that the current description doesn't describe the "thing" that most people would be looking for - that it *renders* templates.

Thanks!

Commits
-------

fabbac88 Tweaking phpdoc above Environment
2020-03-17 15:08:54 +01:00
Ryan Weaver fabbac8816 Tweaking phpdoc above Environment 2020-03-17 15:08:49 +01:00
Fabien Potencier 103e2495f0 minor #3275 Identity Equals - Best practices (hectorprats)
This PR was submitted for the 3.x branch but it was merged into the 1.x branch instead.

Discussion
----------

Identity Equals - Best practices

all the equals are with identity equals, except these.

It's better normalize all the comparatives operations.

Commits
-------

60d5b4bc Identity Equals - Best practices
2020-02-26 13:13:58 +01:00
Hector Prats 60d5b4bcf7 Identity Equals - Best practices 2020-02-26 13:13:52 +01:00
Fabien Potencier 59373af88c minor #3280 Update default.rst (hellomedia)
This PR was submitted for the 3.x branch but it was merged into the 1.x branch instead.

Discussion
----------

Update default.rst

Add warning for potentially confusing behaviour and alternative solution.

Commits
-------

9ff9a4d3 Update default.rst
2020-02-26 13:13:25 +01:00
Nicolas Sauveur 9ff9a4d3c0 Update default.rst
Add warning for potentially confusing behaviour and alternative solution.
2020-02-26 13:13:20 +01:00
Fabien Potencier 0da153eb3b Merge branch '1.x' into 2.x
* 1.x:
  Fix ambiguous syntax parsing
2020-02-23 09:42:25 +01:00
Fabien Potencier 8de0b772dc bug #3278 Fix ambiguous syntax parsing (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Fix ambiguous syntax parsing

Commits
-------

5663351a Fix ambiguous syntax parsing
2020-02-23 09:42:07 +01:00
Fabien Potencier 5663351a49 Fix ambiguous syntax parsing 2020-02-23 09:40:57 +01:00
Fabien Potencier 8a4f881623 Merge branch '1.x' into 2.x
* 1.x:
  Fix regression
2020-02-21 09:29:15 +01:00
Fabien Potencier 77e5846161 Fix regression 2020-02-21 09:29:07 +01:00
Fabien Potencier 0686ccf278 Merge branch '1.x' into 2.x
* 1.x:
  Fix ambiguous syntax parsing
2020-02-21 08:37:29 +01:00
Fabien Potencier 5d6d791454 bug #3276 Fix ambiguous syntax parsing (fabpot)
This PR was merged into the 1.x branch.

Discussion
----------

Fix ambiguous syntax parsing

Commits
-------

5724cbed Fix ambiguous syntax parsing
2020-02-21 08:36:20 +01:00
Fabien Potencier 5724cbeddf Fix ambiguous syntax parsing 2020-02-21 08:31:42 +01:00
Fabien Potencier d876bc45c9 Fix CHANGELOG 2020-02-14 16:15:54 +01:00
Fabien Potencier 10e5015411 Merge branch '1.x' into 2.x
* 1.x:
  Fix format of the CHANGELOG
  Update advanced.rst
2020-02-14 16:15:19 +01:00
Fabien Potencier 1325da4c85 minor #3269 Fix format of the CHANGELOG (nicolas-grekas)
This PR was merged into the 1.x branch.

Discussion
----------

Fix format of the CHANGELOG

Change to be applied to 2.x and 3.x when merging up of course.

Commits
-------

85cb7fd0 Fix format of the CHANGELOG
2020-02-14 16:14:30 +01:00
Nicolas Grekas 85cb7fd0ce Fix format of the CHANGELOG 2020-02-14 15:58:25 +01:00
Fabien Potencier 4d62307f98 bug #3268 IntlExtension > Return empty string when input is null (ruudk)
This PR was submitted for the 3.x branch but it was merged into the 2.x branch instead.

Discussion
----------

IntlExtension > Return empty string when input is null

```twig
{{ inputCountry | country_name('en') }}
```
When `inputCountry` is `null` it will give this error:
```
Argument 1 passed to Twig\Extra\Intl\IntlExtension::getCountryName() must be of the type string, null given
```

With this change, an empty string will be returned instead.

See discussion in https://github.com/twigphp/Twig/pull/3257#issuecomment-585740408

Commits
-------

caecd2a5 IntlExtension > Return empty string when input is null
2020-02-13 14:24:02 +01:00
Ruud Kamphuis caecd2a528 IntlExtension > Return empty string when input is null 2020-02-13 14:23:56 +01:00
Fabien Potencier 225ecdb1c8 minor #3267 Update advanced.rst (abdounikarim)
This PR was submitted for the 3.x branch but it was merged into the 1.x branch instead.

Discussion
----------

Update advanced.rst

Hello,

I just updated the class name 😉

Commits
-------

e030bf6e Update advanced.rst
2020-02-13 13:50:10 +01:00
Abdouni Abdelkarim e030bf6e38 Update advanced.rst
Hello,

I just updated the class name 😉
2020-02-13 13:50:04 +01:00
Fabien Potencier 54a87ed247 Merge branch '1.x' into 2.x
* 1.x:
  Fix optimize context access on PHP 7.4
2020-02-12 12:01:30 +01:00
Fabien Potencier 10319b4f6a bug #3264 Optimize context access on PHP 7.4 (rob006)
This PR was merged into the 1.x branch.

Discussion
----------

Optimize context access on PHP 7.4

`700400` means PHP 70.4

refs https://github.com/twigphp/Twig/pull/2985

Commits
-------

e3c20d39 Fix optimize context access on PHP 7.4
2020-02-12 11:59:17 +01:00
Robert Korulczyk e3c20d39d6 Fix optimize context access on PHP 7.4 2020-02-11 21:11:57 +01:00
Fabien Potencier 3726c9a18c Merge branch '1.x' into 2.x
* 1.x:
  Sync LICENSE with GitHub template
2020-02-11 17:34:19 +01:00
Fabien Potencier 56656f0e1c minor #3263 Sync LICENSE with GitHub template (nicolas-grekas)
This PR was merged into the 1.x branch.

Discussion
----------

Sync LICENSE with GitHub template

This should make GitHub able to detect the license of the project.
Copied from https://github.com/licenses/license-templates/blob/master/templates/bsd3.txt

Commits
-------

490017f2 Sync LICENSE with GitHub template
2020-02-11 17:34:01 +01:00