From: Thiemo Kreuz Date: Fri, 13 Sep 2019 09:34:33 +0000 (+0200) Subject: output: Narrow Title type hint to LinkTarget X-Git-Tag: 1.34.0-rc.0~237^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=1fa42d25ec6a72ddc3b0d143b62b38b91cffda5d output: Narrow Title type hint to LinkTarget The code never needs a full Title object, but only what the (more narrow) interface provides. Change-Id: I3a7aa35c7e90fffaf37f4cb444549237c20e0bd9 --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 7f005fb7cd..9dbbf139de 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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