Follow-up T174035: Wrap inline ternary in brackets to make phpcs happy
authorJames D. Forrester <jforrester@wikimedia.org>
Mon, 22 Oct 2018 16:23:22 +0000 (09:23 -0700)
committerJames D. Forrester <jforrester@wikimedia.org>
Mon, 22 Oct 2018 16:23:22 +0000 (09:23 -0700)
Bug: T203805
Change-Id: I418345870e25fa37df0195ddc74193b54fe6d2a5

includes/page/Article.php

index 59d3857..af4f293 100644 (file)
@@ -822,7 +822,7 @@ class Article implements Page {
                $pOutput = ( $outputDone instanceof ParserOutput )
                        // phpcs:ignore MediaWiki.Usage.NestedInlineTernary.UnparenthesizedTernary -- FIXME T203805
                        ? $outputDone // object fetched by hook
-                       : $this->mParserOutput ?: null; // ParserOutput or null, avoid false
+                       : ( $this->mParserOutput ?: null ); // ParserOutput or null, avoid false
 
                # Adjust title for main page & pages with displaytitle
                if ( $pOutput ) {