Merge "Allow tests to run with a non-writable source tree"
[lhc/web/wiklou.git] / includes / parser / DateFormatter.php
index 3be4353..de02861 100644 (file)
@@ -135,7 +135,7 @@ class DateFormatter {
        public static function getInstance( Language $lang = null ) {
                global $wgMainCacheType;
 
-               $lang = $lang ?: MediaWikiServices::getInstance()->getContentLanguage();
+               $lang = $lang ?? MediaWikiServices::getInstance()->getContentLanguage();
                $cache = ObjectCache::getLocalServerInstance( $wgMainCacheType );
 
                static $dateFormatter = false;