diff options
Diffstat (limited to 'includes/htmlform/fields/HTMLTextAreaField.php')
-rw-r--r-- | includes/htmlform/fields/HTMLTextAreaField.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/htmlform/fields/HTMLTextAreaField.php b/includes/htmlform/fields/HTMLTextAreaField.php index 3370e4af13af..e9ed03198285 100644 --- a/includes/htmlform/fields/HTMLTextAreaField.php +++ b/includes/htmlform/fields/HTMLTextAreaField.php @@ -29,15 +29,15 @@ class HTMLTextAreaField extends HTMLFormField { } public function getCols() { - return isset( $this->mParams['cols'] ) ? $this->mParams['cols'] : static::DEFAULT_COLS; + return $this->mParams['cols'] ?? static::DEFAULT_COLS; } public function getRows() { - return isset( $this->mParams['rows'] ) ? $this->mParams['rows'] : static::DEFAULT_ROWS; + return $this->mParams['rows'] ?? static::DEFAULT_ROWS; } public function getSpellCheck() { - $val = isset( $this->mParams['spellcheck'] ) ? $this->mParams['spellcheck'] : null; + $val = $this->mParams['spellcheck'] ?? null; if ( is_bool( $val ) ) { // "spellcheck" attribute literally requires "true" or "false" to work. return $val === true ? 'true' : 'false'; |