From 7e3c481cc041e5d0f67a69b136eb4175944893f1 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sat, 16 Mar 2024 03:57:12 +0100 Subject: [PATCH] Tests: fix for PHP 8.4 deprecation of implicitly nullable types This will work for now. PHPCS 4.0 will remove the whole outdated TestSuite setup as per 25, so by that time, the problem is gone completely. Ref: https://wiki.php.net/rfc/deprecate-implicitly-nullable-types --- tests/TestSuite7.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite7.php b/tests/TestSuite7.php index fd1977a8ca..1b651519dd 100644 --- a/tests/TestSuite7.php +++ b/tests/TestSuite7.php @@ -23,7 +23,7 @@ class TestSuite extends PHPUnit_TestSuite * * @return \PHPUnit\Framework\TestResult */ - public function run(TestResult $result=null): TestResult + public function run(?TestResult $result=null): TestResult { $result = parent::run($result); printPHPCodeSnifferTestOutput();