From b559728049fbe1bc0a9ddcee6449761c0dbfd394 Mon Sep 17 00:00:00 2001 From: addshore Date: Sat, 18 Nov 2017 17:34:10 +0000 Subject: [PATCH] Add __toString method to LinkTarget interface Change-Id: I4f12e3175a308f88e240db01cd4e91e78b283057 --- includes/linker/LinkTarget.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/includes/linker/LinkTarget.php b/includes/linker/LinkTarget.php index dbd97a7a02..980a8bfcb8 100644 --- a/includes/linker/LinkTarget.php +++ b/includes/linker/LinkTarget.php @@ -103,4 +103,15 @@ interface LinkTarget { * @return string */ public function getInterwiki(); + + /** + * Returns an informative human readable representation of the link target, + * for use in logging and debugging. There is no requirement for the return + * value to have any relationship with the input of TitleParser. + * @since 1.31 + * + * @return string + */ + public function __toString(); + } -- 2.20.1