aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiQueryPagePropNames.php
diff options
context:
space:
mode:
authorThiemo Mättig <thiemo.maettig@wikimedia.de>2014-03-25 18:22:11 +0100
committerBrad Jorsch <bjorsch@wikimedia.org>2014-05-16 11:07:23 -0400
commit23632a4ecddd5c6f181807ce776d3be1e1848a71 (patch)
tree466ef09929e9b6e7ffd616153d504a989b745dfe /includes/api/ApiQueryPagePropNames.php
parente10b688d5f98e494571e4e5fcb12a356e0b59c94 (diff)
downloadmediawikicore-23632a4ecddd5c6f181807ce776d3be1e1848a71.tar.gz
mediawikicore-23632a4ecddd5c6f181807ce776d3be1e1848a71.zip
Use precise ApiMain/ApiQuery type hints in all API modules
Which type is used depends on the ApiModuleManager responsible for the API module. There are two managers, one in ApiMain and one in ApiQuery. Both contain a list of API modules they instantiate. Both use $this as the first parameter in the constructors of the individual modules. There is no other regular way to instantiate the modules, so we know the type must either be ApiMain or ApiQuery. The lists don't intersect. I would have prefered the naming scheme $mainModule for ApiMain modules and $queryModule for ApiQuery modules but since this doesn't add much I left the shorter variable names untouched. Change-Id: Ie6bf19150f1c9b619655a06a8e051412665e54db
Diffstat (limited to 'includes/api/ApiQueryPagePropNames.php')
-rw-r--r--includes/api/ApiQueryPagePropNames.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/api/ApiQueryPagePropNames.php b/includes/api/ApiQueryPagePropNames.php
index c38747546b0c..8cd9c6cffab3 100644
--- a/includes/api/ApiQueryPagePropNames.php
+++ b/includes/api/ApiQueryPagePropNames.php
@@ -32,7 +32,7 @@
*/
class ApiQueryPagePropNames extends ApiQueryBase {
- public function __construct( $query, $moduleName ) {
+ public function __construct( ApiQuery $query, $moduleName ) {
parent::__construct( $query, $moduleName, 'ppn' );
}