summaryrefslogtreecommitdiffstats
path: root/114.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-09-13 15:27:05 +0200
committerRemi Collet <remi@remirepo.net>2019-09-13 16:23:22 +0200
commite0a03d275c897f53ad6ac7dc8264596c4f965538 (patch)
tree90449abf71b90fd6593539e348c05f01d01eaa75 /114.patch
parentca2694a42c6a9f8096503a24a8c6735ae1e10154 (diff)
add patch for 7.4 from
https://github.com/zendframework/zend-i18n/pull/114 (cherry picked from commit ce2e9e5e6c3bcba4e76fd84e1b053298172b49e3)
Diffstat (limited to '114.patch')
-rw-r--r--114.patch22
1 files changed, 22 insertions, 0 deletions
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 <remi@remirepo.net>
+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) {