mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-15 03:34:25 +00:00
Use explicit nullable type on parameter arguments
Bug: T376276 Change-Id: Ic96b569cb73534d00f2ccd43829235351c6889c3
This commit is contained in:
parent
d9d4603095
commit
621484ca7b
|
@ -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