mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles
synced 2024-11-24 00:06:06 +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: Ia6c0313551424cac3fdc66654d63b64f3ef89533
This commit is contained in:
parent
21670ccd09
commit
a997d1eaa3
|
@ -157,7 +157,7 @@ class TemplateStylesContentTest extends TextContentTest {
|
|||
/**
|
||||
* @dataProvider dataEquals
|
||||
*/
|
||||
public function testEquals( Content $a, Content $b = null, $equal = false ) {
|
||||
public function testEquals( Content $a, ?Content $b = null, $equal = false ) {
|
||||
$this->assertEquals( $equal, $a->equals( $b ) );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue