X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Futils%2FBatchRowUpdate.php;h=39b65c3fb3da9190f817c14b6acee64d046d5f0e;hp=549ad41ba21b4b583300968c11bae24fb2abc117;hb=e758226c91935a1df2b6fd3ed1f18922d8bfb45b;hpb=96906168cac0e9a7748511b48c369cf22c8406d5 diff --git a/includes/utils/BatchRowUpdate.php b/includes/utils/BatchRowUpdate.php index 549ad41ba2..39b65c3fb3 100644 --- a/includes/utils/BatchRowUpdate.php +++ b/includes/utils/BatchRowUpdate.php @@ -4,7 +4,7 @@ * method of batch updating rows in a database. To use create a class * implementing the RowUpdateGenerator interface and configure the * BatchRowIterator and BatchRowWriter for access to the correct table. - * The components will handle reading, writing, and waiting for slaves + * The components will handle reading, writing, and waiting for replica DBs * while the generator implementation handles generating update arrays * for singular rows. * @@ -112,15 +112,8 @@ class BatchRowUpdate { * * @param callable $output A callback taking a single string * parameter to output - * - * @throws MWException */ - public function setOutput( $output ) { - if ( !is_callable( $output ) ) { - throw new MWException( - 'Provided $output param is required to be callable.' - ); - } + public function setOutput( callable $output ) { $this->output = $output; }