From 553e40ca6357b3a7dd483df23e4c6dc723ec5ab8 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Mon, 22 Oct 2018 09:23:22 -0700 Subject: [PATCH] Follow-up T174035: Wrap inline ternary in brackets to make phpcs happy Bug: T203805 Change-Id: I418345870e25fa37df0195ddc74193b54fe6d2a5 --- includes/page/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1