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
/
htmlform
/
fields
/
HTMLExpiryField.php
diff --git
a/includes/htmlform/fields/HTMLExpiryField.php
b/includes/htmlform/fields/HTMLExpiryField.php
index
dfe6a8a
..
e7bdb44
100644
(file)
--- a/
includes/htmlform/fields/HTMLExpiryField.php
+++ b/
includes/htmlform/fields/HTMLExpiryField.php
@@
-56,7
+56,7
@@
class HTMLExpiryField extends HTMLFormField {
$this->relativeField->getInputOOUI( $value ),
[
'id' => $this->mID,
- 'required' =>
isset( $this->mParams['required'] ) ? $this->mParams['required'] :
false,
+ 'required' =>
$this->mParams['required'] ??
false,
]
);
}