X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FDatabaseUpdater.php;h=6a702e9fbb18d9245ec4ad6d13c187a622e9b639;hb=e421158b1adb642fa07c9dd33404555976a7bf7f;hp=6f066cea1e66066bc635ce1dd42d0762d9c6209a;hpb=59e7337ea612d03d08b67e6ada707e3d7ced738d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/DatabaseUpdater.php b/includes/installer/DatabaseUpdater.php index 6f066cea1e..6a702e9fbb 100644 --- a/includes/installer/DatabaseUpdater.php +++ b/includes/installer/DatabaseUpdater.php @@ -222,12 +222,11 @@ abstract class DatabaseUpdater { * * @since 1.17 * - * @param array $update The update to run. Format is the following: - * first item is the callback function, it also can be a - * simple string with the name of a function in this class, - * following elements are parameters to the function. - * Note that callback functions will receive this object as - * first parameter. + * @param array $update The update to run. Format is [ $callback, $params... ] + * $callback is the method to call; either a DatabaseUpdater method name or a callable. + * Must be serializable (ie. no anonymous functions allowed). The rest of the parameters + * (if any) will be passed to the callback. The first parameter passed to the callback + * is always this object. */ public function addExtensionUpdate( array $update ) { $this->extensionUpdates[] = $update;