From: Stephane Bisson Date: Tue, 13 Feb 2018 20:50:49 +0000 (-0500) Subject: Fix typehint for multiple dbs in addCallableUpdate X-Git-Tag: 1.31.0-rc.0~615^2 X-Git-Url: https://git.cyclocoop.org/%27%20.%20%24this-%3EgetSkin%28%29-%3EescapeSearchLink%28%29%20.%20%27?a=commitdiff_plain;h=b5ea51dce6a293ae7fbb8aec2a18ddee0c3c4774;p=lhc%2Fweb%2Fwiklou.git Fix typehint for multiple dbs in addCallableUpdate Change-Id: Ic4fe6c529d9394cfd0c8c8652a28f47973342096 Follow-up: I0371ecd20101c5e622497e5912676300b040865e --- 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 ); }