As can be seen in this build, multiple tests are failing on PHP 8.6 with a "Deprecated: Returning a value from a constructor is deprecated" error.
This is related to the following PHP 8.6 RFC: https://wiki.php.net/rfc/deprecate-return-value-from-construct
The class constructors in the fixture code for these tests do not return or yield, so the error is caused by something in the wiring of Patchwork.
This needs investigation & fixing.
Detailed test failures
1) /home/runner/work/patchwork/patchwork/tests/anonymous-class-attribute.phpt
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'===DONE==='
+'Deprecated: Returning a value from a constructor is deprecated in /home/runner/work/patchwork/patchwork/tests/includes/AnonymousClassAttribute.php on line 6\n
+===DONE==='
/home/runner/work/patchwork/patchwork/tests/anonymous-class-attribute.phpt:21
2) /home/runner/work/patchwork/patchwork/tests/apply-scheduled-patches-only-once.phpt
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'===DONE==='
+'Deprecated: Returning a value from a constructor is deprecated in /home/runner/work/patchwork/patchwork/tests/includes/NamedObject.php on line 8\n
+===DONE==='
/home/runner/work/patchwork/patchwork/tests/apply-scheduled-patches-only-once.phpt:30
3) /home/runner/work/patchwork/patchwork/tests/closure-this.phpt
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'===DONE==='
+'Deprecated: Returning a value from a constructor is deprecated in /home/runner/work/patchwork/patchwork/tests/includes/NamedObject.php on line 8\n
+===DONE==='
--- Expected
+++ Actual
@@ @@
-'===DONE==='
+'Deprecated: Returning a value from a constructor is deprecated in /home/runner/work/patchwork/patchwork/tests/includes/RedefinitionOfNew.php on line 38\n
+===DONE==='
/home/runner/work/patchwork/patchwork/tests/redefine-new.phpt:19
9) /home/runner/work/patchwork/patchwork/tests/redefinition-new-anonymous-class-with-attribute.phpt
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'===DONE==='
+'Deprecated: Returning a value from a constructor is deprecated in /home/runner/work/patchwork/patchwork/tests/includes/AnonymousClassAttribute.php on line 6\n
+===DONE==='
/home/runner/work/patchwork/patchwork/tests/redefinition-new-anonymous-class-with-attribute.phpt:23
11) /home/runner/work/patchwork/patchwork/tests/stack-inspection.phpt
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'===DONE==='
+'Deprecated: Returning a value from a constructor is deprecated in /home/runner/work/patchwork/patchwork/tests/includes/NamedObject.php on line 8\n
+===DONE==='
/home/runner/work/patchwork/patchwork/tests/stack-inspection.phpt:45
As can be seen in this build, multiple tests are failing on PHP 8.6 with a "Deprecated: Returning a value from a constructor is deprecated" error.
This is related to the following PHP 8.6 RFC: https://wiki.php.net/rfc/deprecate-return-value-from-construct
The class constructors in the fixture code for these tests do not
returnoryield, so the error is caused by something in the wiring of Patchwork.This needs investigation & fixing.
Detailed test failures