X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fwidget%2FNamespaceInputWidget.php;h=a360fb8e917e0786167f2f424922c86c5eab7a53;hb=1e2cce13eae6d97b312be2e96a70a443a79c4465;hp=6a0c0da269ff606eed3b0da418b952030e3ae6b5;hpb=92f9cb055173058c7c09ea746ba75109fbe0f7ec;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/widget/NamespaceInputWidget.php b/includes/widget/NamespaceInputWidget.php index 6a0c0da269..a360fb8e91 100644 --- a/includes/widget/NamespaceInputWidget.php +++ b/includes/widget/NamespaceInputWidget.php @@ -1,18 +1,18 @@ includeAllValue = isset( $config['includeAllValue'] ) ? $config['includeAllValue'] : null; - $this->exclude = isset( $config['exclude'] ) ? $config['exclude'] : []; + $this->includeAllValue = $config['includeAllValue'] ?? null; + $this->exclude = $config['exclude'] ?? []; // Initialization $this->addClasses( [ 'mw-widget-namespaceInputWidget' ] ); @@ -36,8 +36,8 @@ class NamespaceInputWidget extends \OOUI\DropdownInputWidget { protected function getNamespaceDropdownOptions( array $config ) { $namespaceOptionsParams = [ - 'all' => isset( $config['includeAllValue'] ) ? $config['includeAllValue'] : null, - 'exclude' => isset( $config['exclude'] ) ? $config['exclude'] : null + 'all' => $config['includeAllValue'] ?? null, + 'exclude' => $config['exclude'] ?? null ]; $namespaceOptions = \Html::namespaceSelectorOptions( $namespaceOptionsParams );