blob: 80daf1617b839fd115f158e1b1ef224296190343 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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) {
|