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
This commit is contained in:
Andre Klapper 2024-10-26 14:58:16 +02:00
parent 49462da6a9
commit 659cf72b2f

View file

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