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
2020-01-13 09:20:25 +01:00
2020-02-12 12:01:30 +01:00
2019-10-17 09:29:33 +02:00
2019-08-08 18:07:29 +02:00
2020-02-11 08:49:24 +01:00
2020-02-11 16:32:19 +01:00
2019-12-28 08:09:20 +01:00
2019-11-28 15:02:56 +01:00
2020-02-11 17:31:46 +01:00

Twig, the flexible, fast, and secure template language for PHP
==============================================================

Twig is a template language for PHP, released under the new BSD license (code
and documentation).

Twig uses a syntax similar to the Django and Jinja template languages which
inspired the Twig runtime environment.

Sponsors
--------

.. raw:: html

    <a href="https://blackfire.io/docs/introduction?utm_source=twig&utm_medium=github_readme&utm_campaign=logo">
        <img src="https://static.blackfire.io/assets/intemporals/logo/png/blackfire-io_secondary_horizontal_transparent.png?1" width="255px" alt="Blackfire.io">
    </a>

More Information
----------------

Read the `documentation`_ for more information.

.. _documentation: https://twig.symfony.com/documentation
Languages
PHP 99.9%