Fix typehint for multiple dbs in addCallableUpdate
authorStephane Bisson <sbisson@wikimedia.org>
Tue, 13 Feb 2018 20:50:49 +0000 (15:50 -0500)
committerStephane Bisson <sbisson@wikimedia.org>
Tue, 13 Feb 2018 20:50:49 +0000 (15:50 -0500)
Change-Id: Ic4fe6c529d9394cfd0c8c8652a28f47973342096
Follow-up: I0371ecd20101c5e622497e5912676300b040865e

includes/deferred/DeferredUpdates.php

index 3c4833c..9b25d53 100644 (file)
@@ -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 );
        }