X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fwidget%2FComplexTitleInputWidget.php;h=77370674f5eb31c6591ee661d6852cca14626d7a;hb=327e8ea41681487382d8abe7cb111501954b9d1b;hp=ca6c8484d1ffb905a69340e7cd88a492f821b838;hpb=faf7cc4a09848c538320bd2b9067b1a77c0a0183;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/widget/ComplexTitleInputWidget.php b/includes/widget/ComplexTitleInputWidget.php index ca6c8484d1..77370674f5 100644 --- a/includes/widget/ComplexTitleInputWidget.php +++ b/includes/widget/ComplexTitleInputWidget.php @@ -20,6 +20,7 @@ class ComplexTitleInputWidget extends \OOUI\Widget { * - array $config['namespace'] Configuration for the NamespaceInputWidget dropdown * with list of namespaces * - array $config['title'] Configuration for the TitleInputWidget text field + * @phan-param array{namespace?:array,title?:array} $config */ public function __construct( array $config = [] ) { // Configuration initialization @@ -40,9 +41,7 @@ class ComplexTitleInputWidget extends \OOUI\Widget { $config['title'], [ 'relative' => true, - 'namespace' => isset( $config['namespace']['value'] ) ? - $config['namespace']['value'] : - null, + 'namespace' => $config['namespace']['value'] ?? null, ] ) );