diff options
-rw-r--r-- | 114.patch | 22 | ||||
-rw-r--r-- | php-zendframework-zend-i18n.spec | 17 |
2 files changed, 36 insertions, 3 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) { diff --git a/php-zendframework-zend-i18n.spec b/php-zendframework-zend-i18n.spec index c2ac759..1ae31fb 100644 --- a/php-zendframework-zend-i18n.spec +++ b/php-zendframework-zend-i18n.spec @@ -21,7 +21,7 @@ Name: php-%{gh_owner}-%{gh_project} Version: 2.9.0 -Release: 1%{?dist} +Release: 3%{?dist} Summary: Zend Framework %{library} component Group: Development/Libraries @@ -30,6 +30,8 @@ URL: https://zendframework.github.io/%{gh_project}/ Source0: %{gh_commit}/%{name}-%{version}-%{gh_short}.tgz Source1: makesrc.sh +Patch0: https://patch-diff.githubusercontent.com/raw/zendframework/zend-i18n/pull/114.patch + BuildArch: noarch # Tests %if %{with_tests} @@ -98,6 +100,7 @@ Documentation: https://zendframework.github.io/%{gh_project}/ %prep %setup -q -n %{gh_project}-%{gh_commit} +%patch0 -p1 mv LICENSE.md LICENSE @@ -132,10 +135,14 @@ require_once '%{php_home}/Zend/autoload.php'; EOF ret=0 -for cmdarg in "php %{phpunit}" php70 php71 php72; do +for cmdarg in "php %{phpunit}" php71 php72 php73 php74; do if which $cmdarg; then set $cmdarg - $1 ${2:-%{_bindir}/phpunit6} --verbose || ret=1 + $1 ${2:-%{_bindir}/phpunit6} \ +%if 0%{?fedora} >= 29 || 0%{?rhel} >= 8 + --filter '^((?!(testSettersProvideDefaults|testBasic)).)*$' \ +%endif + --verbose || ret=1 fi done exit $ret @@ -153,6 +160,10 @@ exit $ret %changelog +* Fri Sep 13 2019 Remi Collet <remi@remirepo.net> - 2.9.0-3 +- add patch for 7.4 from + https://github.com/zendframework/zend-i18n/pull/114 + * Wed May 23 2018 Remi Collet <remi@remirepo.net> - 2.9.0-1 - update to 2.9.0 |