From b5ea51dce6a293ae7fbb8aec2a18ddee0c3c4774 Mon Sep 17 00:00:00 2001 From: Stephane Bisson Date: Tue, 13 Feb 2018 15:50:49 -0500 Subject: [PATCH] Fix typehint for multiple dbs in addCallableUpdate Change-Id: Ic4fe6c529d9394cfd0c8c8652a28f47973342096 Follow-up: I0371ecd20101c5e622497e5912676300b040865e --- includes/deferred/DeferredUpdates.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/deferred/DeferredUpdates.php b/includes/deferred/DeferredUpdates.php index 3c4833c7f0..9b25d53820 100644 --- a/includes/deferred/DeferredUpdates.php +++ b/includes/deferred/DeferredUpdates.php @@ -106,10 +106,10 @@ class DeferredUpdates { * * @param callable $callable * @param int $stage DeferredUpdates constant (PRESEND or POSTSEND) (since 1.27) - * @param IDatabase|null $dbw Abort if this DB is rolled back [optional] (since 1.28) + * @param IDatabase|IDatabase[]|null $dbw Abort if this DB is rolled back [optional] (since 1.28) */ public static function addCallableUpdate( - $callable, $stage = self::POSTSEND, IDatabase $dbw = null + $callable, $stage = self::POSTSEND, $dbw = null ) { self::addUpdate( new MWCallableUpdate( $callable, wfGetCaller(), $dbw ), $stage ); } -- 2.20.1