Skip to content

Commit 7f737fe

Browse files
author
Olivier Dolbeau
authored
Merge pull request #407 from Guite/master
allow null values in CheckMissingCommand
2 parents fe181a2 + 2332658 commit 7f737fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Command/CheckMissingCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ private function countEmptyTranslations(MessageCatalogueInterface $catalogue): i
134134
foreach ($catalogue->getDomains() as $domain) {
135135
$emptyTranslations = \array_filter(
136136
$catalogue->all($domain),
137-
function (string $message): bool {
138-
return '' === $message;
137+
function (string $message = null): bool {
138+
return null === $message || '' === $message;
139139
}
140140
);
141141

0 commit comments

Comments
 (0)