From 1fa42d25ec6a72ddc3b0d143b62b38b91cffda5d Mon Sep 17 00:00:00 2001 From: Thiemo Kreuz Date: Fri, 13 Sep 2019 11:34:33 +0200 Subject: [PATCH] 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 --- includes/OutputPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1