Use explicit nullable type on parameter arguments

Bug: T376276
Change-Id: Ic96b569cb73534d00f2ccd43829235351c6889c3
This commit is contained in:
Reedy 2024-10-28 22:22:03 +00:00
parent d9d4603095
commit 621484ca7b
3 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ class ConfigHelper {
*
* @return bool
*/
public static function shouldDisable( array $options, WebRequest $request, Title $title = null ) {
public static function shouldDisable( array $options, WebRequest $request, ?Title $title = null ) {
$canonicalTitle = $title ? $title->getRootTitle() : null;
$exclusions = $options[ 'exclude' ] ?? [];

View file

@ -48,7 +48,7 @@ final class LimitedWidthContentRequirement implements Requirement {
public function __construct(
Config $config,
WebRequest $request,
Title $title = null
?Title $title = null
) {
$this->config = $config;
$this->title = $title;

View file

@ -61,7 +61,7 @@ final class UserPreferenceRequirement implements Requirement {
string $optionName,
string $requirementName,
WebRequest $request,
Title $title = null
?Title $title = null
) {
$this->user = $user;
$this->userOptionsLookup = $userOptionsLookup;