mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-23 15:56:50 +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: Ifb189a3fcacc971ff43ff44d5ffc564f068a7da0
This commit is contained in:
parent
49462da6a9
commit
659cf72b2f
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue