From 659cf72b2f46057d55434aefe06e7ed22346cc4f Mon Sep 17 00:00:00 2001 From: Andre Klapper Date: Sat, 26 Oct 2024 14:58:16 +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: Ifb189a3fcacc971ff43ff44d5ffc564f068a7da0 --- tests/phpunit/HTMLFancyCaptchaFieldTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/HTMLFancyCaptchaFieldTest.php b/tests/phpunit/HTMLFancyCaptchaFieldTest.php index 662d454a9..ed546e323 100644 --- a/tests/phpunit/HTMLFancyCaptchaFieldTest.php +++ b/tests/phpunit/HTMLFancyCaptchaFieldTest.php @@ -51,7 +51,7 @@ class HTMLFancyCaptchaFieldTest extends MediaWikiIntegrationTestCase { $form->trySubmit(); } - protected function getForm( $params = [], WebRequest $request = null ) { + protected function getForm( $params = [], ?WebRequest $request = null ) { if ( $request ) { $context = new DerivativeContext( RequestContext::getMain() ); $context->setRequest( $request );