Merge "Use explicit nullable type on parameter arguments"

This commit is contained in:
jenkins-bot 2024-10-29 18:13:15 +00:00 committed by Gerrit Code Review
commit 804d31be9e
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;