mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-23 23:33:54 +00:00
Merge "Use explicit nullable type on parameter arguments"
This commit is contained in:
commit
804d31be9e
|
@ -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' ] ?? [];
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue