diff --git a/Command/CheckMissingCommand.php b/Command/CheckMissingCommand.php index e0162f1..9618e10 100644 --- a/Command/CheckMissingCommand.php +++ b/Command/CheckMissingCommand.php @@ -134,8 +134,8 @@ private function countEmptyTranslations(MessageCatalogueInterface $catalogue): i foreach ($catalogue->getDomains() as $domain) { $emptyTranslations = \array_filter( $catalogue->all($domain), - function (string $message): bool { - return '' === $message; + function (string $message = null): bool { + return null === $message || '' === $message; } );