mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-27 17:20:12 +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
138912bc38
commit
7e9885793d
|
@ -1,8 +1,6 @@
|
|||
<?xml version="1.0"?>
|
||||
<ruleset>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||
<exclude name="MediaWiki.Usage.NullableType.ExplicitNullableTypes" />
|
||||
</rule>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" />
|
||||
<file>.</file>
|
||||
<arg name="extensions" value="php" />
|
||||
<arg name="encoding" value="UTF-8" />
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue