diff options
Diffstat (limited to 'includes/htmlform/HTMLFormElement.php')
-rw-r--r-- | includes/htmlform/HTMLFormElement.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/htmlform/HTMLFormElement.php b/includes/htmlform/HTMLFormElement.php index 2830b9c258e2..fbef2651f669 100644 --- a/includes/htmlform/HTMLFormElement.php +++ b/includes/htmlform/HTMLFormElement.php @@ -13,8 +13,8 @@ trait HTMLFormElement { public function initializeHTMLFormElement( array $config = [] ) { // Properties - $this->hideIf = isset( $config['hideIf'] ) ? $config['hideIf'] : null; - $this->modules = isset( $config['modules'] ) ? $config['modules'] : []; + $this->hideIf = $config['hideIf'] ?? null; + $this->modules = $config['modules'] ?? []; // Initialization if ( $this->hideIf ) { |