Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 #3257 (comment) Commits ------- caecd2a IntlExtension > Return empty string when input is null
- Loading branch information
Showing
7 changed files
with
42 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters