Merge "Use PHP7 constant expression instead of a magic number"
[lhc/web/wiklou.git] / includes / cache / GenderCache.php
index 099a986..1ec39a5 100644 (file)
@@ -85,7 +85,7 @@ class GenderCache {
                /* Undefined if there is a valid username which for some reason doesn't
                 * exist in the database.
                 */
-               return isset( $this->cache[$username] ) ? $this->cache[$username] : $this->getDefault();
+               return $this->cache[$username] ?? $this->getDefault();
        }
 
        /**