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
/
HTMLFloatField.php
diff --git
a/includes/htmlform/fields/HTMLFloatField.php
b/includes/htmlform/fields/HTMLFloatField.php
index
d2d54e2
..
72381f0
100644
(file)
--- a/
includes/htmlform/fields/HTMLFloatField.php
+++ b/
includes/htmlform/fields/HTMLFloatField.php
@@
-5,7
+5,7
@@
*/
class HTMLFloatField extends HTMLTextField {
public function getSize() {
- return
isset( $this->mParams['size'] ) ? $this->mParams['size'] :
20;
+ return
$this->mParams['size'] ??
20;
}
public function validate( $value, $alldata ) {