From: Aaron Schulz Date: Tue, 3 May 2016 08:47:36 +0000 (-0700) Subject: Clean up PoolWorkArticleView type hints and fix IDEA errors X-Git-Tag: 1.31.0-rc.0~7118^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=58bae669bc4f3a56c1cc87e6666fe6f34676ac11;p=lhc%2Fweb%2Fwiklou.git Clean up PoolWorkArticleView type hints and fix IDEA errors All callers pass a WikiPage here already. Change-Id: I6a17bf52fb2547729c6a1fa40704f1c9efe28b12 --- diff --git a/includes/poolcounter/PoolWorkArticleView.php b/includes/poolcounter/PoolWorkArticleView.php index 7ddedb93f4..29016a8e57 100644 --- a/includes/poolcounter/PoolWorkArticleView.php +++ b/includes/poolcounter/PoolWorkArticleView.php @@ -19,7 +19,7 @@ */ class PoolWorkArticleView extends PoolCounterWork { - /** @var Page */ + /** @var WikiPage */ private $page; /** @var string */ @@ -44,7 +44,7 @@ class PoolWorkArticleView extends PoolCounterWork { private $error = false; /** - * @param Page $page + * @param WikiPage $page * @param ParserOptions $parserOptions ParserOptions to use for the parse * @param int $revid ID of the revision being parsed. * @param bool $useParserCache Whether to use the parser cache. @@ -52,7 +52,7 @@ class PoolWorkArticleView extends PoolCounterWork { * @param Content|string $content Content to parse or null to load it; may * also be given as a wikitext string, for BC. */ - public function __construct( Page $page, ParserOptions $parserOptions, + public function __construct( WikiPage $page, ParserOptions $parserOptions, $revid, $useParserCache, $content = null ) { if ( is_string( $content ) ) { // BC: old style call