From 5986441375cc6927bbd7744dde799e4046c1bb41 Mon Sep 17 00:00:00 2001 From: libraryupgrader Date: Sun, 22 Dec 2019 07:19:42 +0000 Subject: [PATCH] build: Updating mediawiki/mediawiki-phan-config to 0.9.0 Don't pass booleans to BagOStuff::makeKey() Change-Id: I87e42cee60d0adefd94f4bdc7fbbfabc65b7c93e --- composer.json | 2 +- includes/ApiQueryExtracts.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 57433df..4050ea9 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "jakub-onderka/php-console-highlighter": "0.3.2", "mediawiki/mediawiki-codesniffer": "28.0.0", "mediawiki/minus-x": "0.3.2", - "mediawiki/mediawiki-phan-config": "0.8.0" + "mediawiki/mediawiki-phan-config": "0.9.0" }, "scripts": { "fix": [ diff --git a/includes/ApiQueryExtracts.php b/includes/ApiQueryExtracts.php index 1d06c4c..979bbfa 100644 --- a/includes/ApiQueryExtracts.php +++ b/includes/ApiQueryExtracts.php @@ -167,7 +167,8 @@ class ApiQueryExtracts extends ApiQueryBase { return $cache->makeKey( 'textextracts', self::CACHE_VERSION, $page->getId(), $page->getTouched(), $page->getTitle()->getPageLanguage()->getPreferredVariant(), - $this->params['plaintext'], $introOnly + $this->params['plaintext'] ? 'plaintext' : 'html', + $introOnly ? 'intro' : 'full' ); }