diff -pruN 4.16.0-2/debian/changelog 4.16.0-3/debian/changelog
--- 4.16.0-2/debian/changelog	2025-02-17 13:01:49.000000000 +0000
+++ 4.16.0-3/debian/changelog	2025-09-19 09:28:09.000000000 +0000
@@ -1,3 +1,11 @@
+php-zend-code (4.16.0-3) unstable; urgency=medium
+
+  * PHPunit 12 compatibility
+  * Remove Rules-Requires-Root
+  * Update Standards-Version to 4.7.2
+
+ -- David Prévot <taffit@debian.org>  Fri, 19 Sep 2025 11:28:09 +0200
+
 php-zend-code (4.16.0-2) unstable; urgency=medium
 
   * Drop all patches
diff -pruN 4.16.0-2/debian/control 4.16.0-3/debian/control
--- 4.16.0-2/debian/control	2024-10-27 10:00:52.000000000 +0000
+++ 4.16.0-3/debian/control	2025-09-19 09:27:39.000000000 +0000
@@ -8,12 +8,11 @@ Build-Depends: debhelper-compat (= 13),
                php-doctrine-annotations,
                php-laminas-stdlib,
                phpab,
-               phpunit
-Standards-Version: 4.7.0
+               phpunit <!nocheck>
+Standards-Version: 4.7.2
 Homepage: https://docs.laminas.dev/laminas-code/
 Vcs-Git: https://salsa.debian.org/php-team/pear/php-zend-code.git
 Vcs-Browser: https://salsa.debian.org/php-team/pear/php-zend-code
-Rules-Requires-Root: no
 
 Package: php-zend-code
 Architecture: all
diff -pruN 4.16.0-2/debian/patches/0001-PHPunit-12-compatibility.patch 4.16.0-3/debian/patches/0001-PHPunit-12-compatibility.patch
--- 4.16.0-2/debian/patches/0001-PHPunit-12-compatibility.patch	1970-01-01 00:00:00.000000000 +0000
+++ 4.16.0-3/debian/patches/0001-PHPunit-12-compatibility.patch	2025-09-19 09:23:42.000000000 +0000
@@ -0,0 +1,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
diff -pruN 4.16.0-2/debian/patches/series 4.16.0-3/debian/patches/series
--- 4.16.0-2/debian/patches/series	1970-01-01 00:00:00.000000000 +0000
+++ 4.16.0-3/debian/patches/series	2025-09-19 09:23:42.000000000 +0000
@@ -0,0 +1 @@
+0001-PHPunit-12-compatibility.patch
diff -pruN 4.16.0-2/debian/tests/control 4.16.0-3/debian/tests/control
--- 4.16.0-2/debian/tests/control	2025-02-17 13:01:07.000000000 +0000
+++ 4.16.0-3/debian/tests/control	2025-09-19 09:23:59.000000000 +0000
@@ -1,4 +1,4 @@
-Restrictions: rw-build-tree, allow-stderr
+Restrictions: allow-stderr, rw-build-tree
 Depends: php-doctrine-annotations,
          php-laminas-stdlib,
          phpab,
