diff --git a/composer.json b/composer.json index 673c9ee..cf26b5a 100644 --- a/composer.json +++ b/composer.json @@ -68,6 +68,9 @@ "zendframework/zend-http:2.6.0": { "Remove support for the X-Original-Url and X-Rewrite-Url headers": "zendframework/zend-http/no-x-original-url-x-rewrite.patch" }, + "zendframework/zend-i18n:2.7.3": { + "Add support for PHP 7.4 to Gettext Loader": "zendframework/zend-i18n/gettext-loader-php7.4.patch" + }, "zendframework/zend-mail:2.7.3": { "Fix idn_to_ascii deprecation warning": "zendframework/zend-mail/fix-idn_to_ascii-deprecation-warning.patch" }, diff --git a/zendframework/zend-i18n/gettext-loader-php7.4.patch b/zendframework/zend-i18n/gettext-loader-php7.4.patch new file mode 100644 index 0000000..5222d34 --- /dev/null +++ b/zendframework/zend-i18n/gettext-loader-php7.4.patch @@ -0,0 +1,15 @@ +From: Michele Locati +Date: Thu, 2 Nov 2023 12:31:03 +0100 +Subject: [PATCH] Let Gettext loader support PHP 7.4 + +--- a/src/Translator/Loader/Gettext.php ++++ b/src/Translator/Loader/Gettext.php +@@ -139,7 +139,7 @@ class Gettext extends AbstractFileLoader + } + + // Read header entries +- if (array_key_exists('', $textDomain)) { ++ if ($textDomain->offsetExists('')) { + $rawHeaders = explode("\n", trim($textDomain[''])); + + foreach ($rawHeaders as $rawHeader) {