mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-23 15:36:52 +00:00
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
This commit is contained in:
parent
46d18ece24
commit
1983629a09
|
@ -190,7 +190,7 @@ class LintUpdateTest extends MediaWikiIntegrationTestCase {
|
||||||
$this->assertSame( 1, $hookCalled );
|
$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();
|
$page = $this->getExistingTestPage();
|
||||||
$title = $page->getTitle();
|
$title = $page->getTitle();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue