Merge "Linker: Remove outdated comment"
[lhc/web/wiklou.git] / includes / registration / ExtensionRegistry.php
index 8429afa..1f8a27e 100644 (file)
@@ -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] ?? [];
        }
 
        /**