From: MGChecker Date: Tue, 4 Sep 2018 01:39:41 +0000 (+0200) Subject: registration: Use null coalescing operator X-Git-Tag: 1.34.0-rc.0~4206 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=fe675221920cae17f4a905540858afa9a9732199;p=lhc%2Fweb%2Fwiklou.git registration: Use null coalescing operator Change-Id: Iba5df6fe8c647baaaff91df311efec22cca7e88f --- diff --git a/includes/registration/ExtensionRegistry.php b/includes/registration/ExtensionRegistry.php index 8429afa843..1f8a27e60e 100644 --- a/includes/registration/ExtensionRegistry.php +++ b/includes/registration/ExtensionRegistry.php @@ -408,11 +408,7 @@ class ExtensionRegistry { * @return array */ public function getAttribute( $name ) { - if ( isset( $this->attributes[$name] ) ) { - return $this->attributes[$name]; - } else { - return []; - } + return $this->attributes[$name] ?? []; } /**