From 2332658453034e47618e7e5f89df0a044d726ae9 Mon Sep 17 00:00:00 2001 From: Guite Date: Sun, 23 Feb 2020 13:13:59 +0100 Subject: [PATCH] allow null values in CheckMissingCommand --- Command/CheckMissingCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } );