aboutsummaryrefslogtreecommitdiffstats
path: root/includes/htmlform/fields/HTMLUsersMultiselectField.php
diff options
context:
space:
mode:
authorThiemo Kreuz <thiemo.kreuz@wikimedia.de>2022-04-04 11:57:04 +0200
committerThiemo Kreuz <thiemo.kreuz@wikimedia.de>2022-08-04 21:43:12 +0200
commite23b070b4547b6a886519d92dacbb36fbd8511f3 (patch)
treeef6ab3e15e5b914bf9adba189da31b51f05d0f8f /includes/htmlform/fields/HTMLUsersMultiselectField.php
parente6664f55c89da5271d751fe6766674006813e686 (diff)
downloadmediawikicore-e23b070b4547b6a886519d92dacbb36fbd8511f3.tar.gz
mediawikicore-e23b070b4547b6a886519d92dacbb36fbd8511f3.zip
Make use of ?? and ?: operators where it makes sense
Change-Id: I1d9d62d80b17d1a05222c6e82f631cb801c311a8
Diffstat (limited to 'includes/htmlform/fields/HTMLUsersMultiselectField.php')
-rw-r--r--includes/htmlform/fields/HTMLUsersMultiselectField.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/includes/htmlform/fields/HTMLUsersMultiselectField.php b/includes/htmlform/fields/HTMLUsersMultiselectField.php
index acdae75f7b32..3fa0ab0a9665 100644
--- a/includes/htmlform/fields/HTMLUsersMultiselectField.php
+++ b/includes/htmlform/fields/HTMLUsersMultiselectField.php
@@ -101,11 +101,8 @@ class HTMLUsersMultiselectField extends HTMLUserTextField {
$params['default'] = $this->mParams['default'];
}
- if ( isset( $this->mParams['placeholder'] ) ) {
- $params['placeholder'] = $this->mParams['placeholder'];
- } else {
- $params['placeholder'] = $this->msg( 'mw-widgets-usersmultiselect-placeholder' )->plain();
- }
+ $params['placeholder'] = $this->mParams['placeholder'] ??
+ $this->msg( 'mw-widgets-usersmultiselect-placeholder' )->plain();
if ( isset( $this->mParams['max'] ) ) {
$params['tagLimit'] = $this->mParams['max'];