From cb74e93b442011194cfeac4d347203965dbdc5ff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Wed, 15 Aug 2018 10:57:21 +0200 Subject: [PATCH] Make LinkBatch::setCaller chainable To allow for one-liners such as $lb->setCaller( __METHOD__ )->execute(); Change-Id: I45cd81d9e583f09aacb578ffb87d7c11b0e13d57 --- includes/cache/LinkBatch.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/cache/LinkBatch.php b/includes/cache/LinkBatch.php index c1aef59be4..86dd3384a0 100644 --- a/includes/cache/LinkBatch.php +++ b/includes/cache/LinkBatch.php @@ -57,9 +57,12 @@ class LinkBatch { * @since 1.17 * * @param string $caller + * @return self (since 1.32) */ public function setCaller( $caller ) { $this->caller = $caller; + + return $this; } /** -- 2.20.1