X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Futils%2FBatchRowUpdate.php;h=39b65c3fb3da9190f817c14b6acee64d046d5f0e;hb=7874fc4bec845ad92960b07e969c65f3c3fe74f2;hp=1e7eda8b6349508d5bfb8cdc660a6e149d42f3ba;hpb=17914cc990c375340b688900b7782f1d7d5339fc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/utils/BatchRowUpdate.php b/includes/utils/BatchRowUpdate.php index 1e7eda8b63..39b65c3fb3 100644 --- a/includes/utils/BatchRowUpdate.php +++ b/includes/utils/BatchRowUpdate.php @@ -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; }