dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use PHP 7 '??' operator instead of '?:' with 'isset()' where convenient
[lhc/web/wiklou.git]
/
includes
/
widget
/
ComplexTitleInputWidget.php
diff --git
a/includes/widget/ComplexTitleInputWidget.php
b/includes/widget/ComplexTitleInputWidget.php
index
ca6c848
..
392e46d
100644
(file)
--- a/
includes/widget/ComplexTitleInputWidget.php
+++ b/
includes/widget/ComplexTitleInputWidget.php
@@
-40,9
+40,7
@@
class ComplexTitleInputWidget extends \OOUI\Widget {
$config['title'],
[
'relative' => true,
- 'namespace' => isset( $config['namespace']['value'] ) ?
- $config['namespace']['value'] :
- null,
+ 'namespace' => $config['namespace']['value'] ?? null,
]
) );