Fix type hint in HistoryAction::getArticle
authorThiemo Mättig <thiemo.maettig@wikimedia.de>
Fri, 6 Feb 2015 15:54:25 +0000 (16:54 +0100)
committerThiemo Mättig <thiemo.maettig@wikimedia.de>
Fri, 6 Feb 2015 15:54:25 +0000 (16:54 +0100)
See the type hint of the accessed Action::$page variable.

Change-Id: I10e4e27773bcca507c10cf526d193bf0a1cc97ac

includes/actions/HistoryAction.php

index 6ee5d2c..da2a11a 100644 (file)
@@ -67,8 +67,7 @@ class HistoryAction extends FormlessAction {
        }
 
        /**
-        * Get the Article object we are working on.
-        * @return Page
+        * @return WikiPage|Article|ImagePage|CategoryPage|Page The Article object we are working on.
         */
        public function getArticle() {
                return $this->page;
@@ -901,4 +900,5 @@ class HistoryPager extends ReverseChronologicalPager {
        function getPreventClickjacking() {
                return $this->preventClickjacking;
        }
+
 }