summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--31933c1e9e455d4c039cbbc4daf0bee85691729b.patch22
-rw-r--r--php-sebastian-recursion-context7.spec8
2 files changed, 29 insertions, 1 deletions
diff --git a/31933c1e9e455d4c039cbbc4daf0bee85691729b.patch b/31933c1e9e455d4c039cbbc4daf0bee85691729b.patch
new file mode 100644
index 0000000..9759f92
--- /dev/null
+++ b/31933c1e9e455d4c039cbbc4daf0bee85691729b.patch
@@ -0,0 +1,22 @@
+From 31933c1e9e455d4c039cbbc4daf0bee85691729b Mon Sep 17 00:00:00 2001
+From: Sebastian Bergmann <sb@sebastian-bergmann.de>
+Date: Thu, 26 Jun 2025 13:13:55 +0200
+Subject: [PATCH] Closes #31
+
+---
+ tests/ContextTest.php | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/ContextTest.php b/tests/ContextTest.php
+index eec3f4f..b261f72 100644
+--- a/tests/ContextTest.php
++++ b/tests/ContextTest.php
+@@ -107,7 +107,7 @@ public function testContainsFound(array|object $value, int $key): void
+ * @param array<mixed>|object $value
+ */
+ #[DataProvider('valuesProvider')]
+- public function testContainsNotFound(array|object $value): void
++ public function testContainsNotFound(array|object $value, int $key): void
+ {
+ $context = new Context;
+
diff --git a/php-sebastian-recursion-context7.spec b/php-sebastian-recursion-context7.spec
index fabbe5a..75a8b31 100644
--- a/php-sebastian-recursion-context7.spec
+++ b/php-sebastian-recursion-context7.spec
@@ -25,7 +25,7 @@
Name: php-%{pk_vendor}-%{pk_project}%{major}
Version: 7.0.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Recursively process PHP variables, version %{major}
License: BSD-3-Clause
@@ -34,6 +34,8 @@ URL: https://github.com/%{gh_owner}/%{gh_project}
Source0: %{name}-%{version}-%{gh_short}.tgz
Source1: makesrc.sh
+Patch0: https://github.com/sebastianbergmann/recursion-context/commit/31933c1e9e455d4c039cbbc4daf0bee85691729b.patch
+
BuildArch: noarch
BuildRequires: php(language) >= 8.3
BuildRequires: php-fedora-autoloader-devel
@@ -63,6 +65,7 @@ Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php
%prep
%setup -q -n %{gh_project}-%{gh_commit}
+%patch -P0 -p1
%build
@@ -102,6 +105,9 @@ exit $ret
%changelog
+* Thu Jun 26 2025 Remi Collet <remi@remirepo.net> - 7.0.0-3
+- add upstream patch for test suite with phpunit 12.2
+
* Mon Feb 10 2025 Remi Collet <remi@remirepo.net> - 7.0.0-2
- enable test suite