From 11ab44151f3d80ef489ae8fe2fc317c459aa45d3 Mon Sep 17 00:00:00 2001 From: Andre Klapper Date: Sat, 26 Oct 2024 15:12:09 +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: Ibd54adb359d2993663db6453e83245d1335ccf63 --- tests/phpunit/TemplateDataBlobTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/TemplateDataBlobTest.php b/tests/phpunit/TemplateDataBlobTest.php index 48afa3fe..3f9cd506 100644 --- a/tests/phpunit/TemplateDataBlobTest.php +++ b/tests/phpunit/TemplateDataBlobTest.php @@ -730,7 +730,7 @@ class TemplateDataBlobTest extends MediaWikiIntegrationTestCase { * @param stdClass $actual * @param string|null $message */ - private function assertStrictJsonEquals( string $expected, stdClass $actual, string $message = null ): void { + private function assertStrictJsonEquals( string $expected, stdClass $actual, ?string $message = null ): void { // Lazy recursive strict comparison: Serialise to JSON and compare that // Sort first to ensure key-order $expected = json_decode( $expected, /* assoc = */ true );