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:
Andre Klapper 2024-10-30 15:19:54 +01:00
parent 21670ccd09
commit a997d1eaa3

View file

@ -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 ) );
}
}