File: 0003-RequiresPhp-needs-an-explicit-version-comparison-ope.patch

package info (click to toggle)
php-doctrine-dbal 4.3.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,120 kB
  • sloc: php: 60,318; xml: 618; makefile: 23
file content (64 lines) | stat: -rw-r--r-- 2,449 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sun, 5 Oct 2025 08:31:27 +0200
Subject: RequiresPhp needs an explicit version comparison operator

Starting with PHPUnit 12.4, a deprecation is emitted otherwise.
---
 tests/Functional/Driver/PDO/PDOSubclassTest.php | 2 +-
 tests/Functional/TypeConversionTest.php         | 2 +-
 tests/Functional/Types/NumberTest.php           | 2 +-
 tests/Types/NumberTest.php                      | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/Functional/Driver/PDO/PDOSubclassTest.php b/tests/Functional/Driver/PDO/PDOSubclassTest.php
index 5a9180a..694acc6 100644
--- a/tests/Functional/Driver/PDO/PDOSubclassTest.php
+++ b/tests/Functional/Driver/PDO/PDOSubclassTest.php
@@ -11,7 +11,7 @@ use Pdo\Pgsql;
 use Pdo\Sqlite;
 use PHPUnit\Framework\Attributes\RequiresPhp;
 
-#[RequiresPhp('8.4')]
+#[RequiresPhp('>= 8.4')]
 final class PDOSubclassTest extends FunctionalTestCase
 {
     public function testMySQLSubclass(): void
diff --git a/tests/Functional/TypeConversionTest.php b/tests/Functional/TypeConversionTest.php
index 0c04a6b..81b413a 100644
--- a/tests/Functional/TypeConversionTest.php
+++ b/tests/Functional/TypeConversionTest.php
@@ -234,7 +234,7 @@ class TypeConversionTest extends FunctionalTestCase
         self::assertSame('13.37', $this->processValue(Types::DECIMAL, '13.37'));
     }
 
-    #[RequiresPhp('8.4')]
+    #[RequiresPhp('>= 8.4')]
     #[RequiresPhpExtension('bcmath')]
     public function testNumber(): void
     {
diff --git a/tests/Functional/Types/NumberTest.php b/tests/Functional/Types/NumberTest.php
index 3de1f03..85f6869 100644
--- a/tests/Functional/Types/NumberTest.php
+++ b/tests/Functional/Types/NumberTest.php
@@ -13,7 +13,7 @@ use PHPUnit\Framework\Attributes\RequiresPhp;
 use PHPUnit\Framework\Attributes\RequiresPhpExtension;
 use PHPUnit\Framework\Attributes\TestWith;
 
-#[RequiresPhp('8.4')]
+#[RequiresPhp('>= 8.4')]
 #[RequiresPhpExtension('bcmath')]
 final class NumberTest extends FunctionalTestCase
 {
diff --git a/tests/Types/NumberTest.php b/tests/Types/NumberTest.php
index b69994b..f8a4633 100644
--- a/tests/Types/NumberTest.php
+++ b/tests/Types/NumberTest.php
@@ -16,7 +16,7 @@ use PHPUnit\Framework\MockObject\MockObject;
 use PHPUnit\Framework\TestCase;
 use stdClass;
 
-#[RequiresPhp('8.4')]
+#[RequiresPhp('>= 8.4')]
 #[RequiresPhpExtension('bcmath')]
 final class NumberTest extends TestCase
 {