From e0a03d275c897f53ad6ac7dc8264596c4f965538 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 13 Sep 2019 15:27:05 +0200 Subject: add patch for 7.4 from https://github.com/zendframework/zend-i18n/pull/114 (cherry picked from commit ce2e9e5e6c3bcba4e76fd84e1b053298172b49e3) --- 114.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 114.patch (limited to '114.patch') diff --git a/114.patch b/114.patch new file mode 100644 index 0000000..80daf16 --- /dev/null +++ b/114.patch @@ -0,0 +1,22 @@ +From 0a8cc92ce6dc1730404e255469082b085b55e84f Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Fri, 13 Sep 2019 14:45:45 +0200 +Subject: [PATCH] Fix Using array_key_exists() on objects is deprecated + +--- + src/Translator/Loader/Gettext.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/Translator/Loader/Gettext.php b/src/Translator/Loader/Gettext.php +index 2a23d5df..7bef31d2 100644 +--- a/src/Translator/Loader/Gettext.php ++++ b/src/Translator/Loader/Gettext.php +@@ -139,7 +139,7 @@ public function load($locale, $filename) + } + + // Read header entries +- if (array_key_exists('', $textDomain)) { ++ if (isset($textDomain[''])) { + $rawHeaders = explode("\n", trim($textDomain[''])); + + foreach ($rawHeaders as $rawHeader) { -- cgit