output: Narrow Title type hint to LinkTarget
authorThiemo Kreuz <thiemo.kreuz@wikimedia.de>
Fri, 13 Sep 2019 09:34:33 +0000 (11:34 +0200)
committerThiemo Kreuz <thiemo.kreuz@wikimedia.de>
Fri, 13 Sep 2019 09:34:33 +0000 (11:34 +0200)
The code never needs a full Title object, but only what the (more
narrow) interface provides.

Change-Id: I3a7aa35c7e90fffaf37f4cb444549237c20e0bd9

includes/OutputPage.php

index 7f005fb..9dbbf13 100644 (file)
@@ -2822,7 +2822,7 @@ class OutputPage extends ContextSource {
        /**
         * Add a "return to" link pointing to a specified title
         *
-        * @param Title $title Title to link
+        * @param LinkTarget $title Title to link
         * @param array $query Query string parameters
         * @param string|null $text Text of the link (input is not escaped)
         * @param array $options Options array to pass to Linker