php-translation / symfony-bundle

Symfony integration for Translations
MIT License
327 stars 94 forks source link

allow null values in CheckMissingCommand #407

Closed Guite closed 4 years ago

Guite commented 4 years ago

This PR ensures that translation:check-missing does not break if a null value is given to the closure used in countEmptyTranslations method.

Error message:

In CheckMissingCommand.php line 137:

Argument 1 passed to Translation\Bundle\Command\CheckMissingCommand::Translation\Bundle\Command\{closure}() must be of the type string, null given