Skip to content

Commit 7e3c481

Browse files
committed
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
1 parent 0eb29a9 commit 7e3c481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/TestSuite7.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class TestSuite extends PHPUnit_TestSuite
2323
*
2424
* @return \PHPUnit\Framework\TestResult
2525
*/
26-
public function run(TestResult $result=null): TestResult
26+
public function run(?TestResult $result=null): TestResult
2727
{
2828
$result = parent::run($result);
2929
printPHPCodeSnifferTestOutput();

0 commit comments

Comments
 (0)