From 1983629a094a13dd12e83d3881ed2ed69c7e9ced Mon Sep 17 00:00:00 2001 From: Andre Klapper Date: Sat, 26 Oct 2024 15:06:43 +0200 Subject: [PATCH] Use explicit nullable type on parameter arguments (for PHP 8.4) Implicitly marking parameter $... as nullable is deprecated in PHP 8.4. The explicit nullable type must be used instead. Bug: T376276 Change-Id: If9163b2bcdc105555ba3e4ed8bca651dbe0ac1bb --- tests/phpunit/LintUpdateTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/LintUpdateTest.php b/tests/phpunit/LintUpdateTest.php index 5fdbf53c..a6927528 100644 --- a/tests/phpunit/LintUpdateTest.php +++ b/tests/phpunit/LintUpdateTest.php @@ -190,7 +190,7 @@ class LintUpdateTest extends MediaWikiIntegrationTestCase { $this->assertSame( 1, $hookCalled ); } - private function newRenderedRevision( WikiPage $page = null, RevisionRecord $rev = null ) { + private function newRenderedRevision( ?WikiPage $page = null, ?RevisionRecord $rev = null ) { $page = $this->getExistingTestPage(); $title = $page->getTitle();