From: James D. Forrester Date: Mon, 22 Oct 2018 16:23:22 +0000 (-0700) Subject: Follow-up T174035: Wrap inline ternary in brackets to make phpcs happy X-Git-Tag: 1.34.0-rc.0~3699^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=553e40ca6357b3a7dd483df23e4c6dc723ec5ab8;p=lhc%2Fweb%2Fwiklou.git Follow-up T174035: Wrap inline ternary in brackets to make phpcs happy Bug: T203805 Change-Id: I418345870e25fa37df0195ddc74193b54fe6d2a5 --- diff --git a/includes/page/Article.php b/includes/page/Article.php index 59d3857b17..af4f293ef1 100644 --- a/includes/page/Article.php +++ b/includes/page/Article.php @@ -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 ) {