File: 0001-PHPunit-12-compatibility.patch

package info (click to toggle)
php-zend-code 4.16.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,684 kB
  • sloc: php: 13,828; xml: 2,327; makefile: 16
file content (41 lines) | stat: -rw-r--r-- 1,700 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
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Fri, 19 Sep 2025 11:23:11 +0200
Subject: PHPunit 12 compatibility

---
 test/Generator/PropertyGeneratorTest.php    | 2 +-
 test/Reflection/ParameterReflectionTest.php | 8 ++++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/test/Generator/PropertyGeneratorTest.php b/test/Generator/PropertyGeneratorTest.php
index 87ce7cd..84fd1ae 100644
--- a/test/Generator/PropertyGeneratorTest.php
+++ b/test/Generator/PropertyGeneratorTest.php
@@ -338,7 +338,7 @@ EOS;
     }
 
     #[DataProvider('dataSetTypeSetValueGenerate')]
-    public function testSetDefaultValue(string $type, mixed $value): void
+    public function testSetDefaultValue(string $type, mixed $value, string $code): void
     {
         $property = new PropertyGenerator();
         $property->setDefaultValue($value, $type);
diff --git a/test/Reflection/ParameterReflectionTest.php b/test/Reflection/ParameterReflectionTest.php
index b1382e3..226d5cd 100644
--- a/test/Reflection/ParameterReflectionTest.php
+++ b/test/Reflection/ParameterReflectionTest.php
@@ -169,8 +169,12 @@ class ParameterReflectionTest extends TestCase
 
     #[Group('zendframework/zend-code#29')]
     #[DataProvider('docBlockHints')]
-    public function testGetTypeWithDocBlockOnlyTypes(string $className, string $methodName, string $parameterName): void
-    {
+    public function testGetTypeWithDocBlockOnlyTypes(
+        string $className,
+        string $methodName,
+        string $parameterName,
+        string $expectedType
+    ): void {
         $reflection = new Reflection\ParameterReflection(
             [$className, $methodName],
             $parameterName