X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Futils%2FBatchRowUpdate.php;h=39b65c3fb3da9190f817c14b6acee64d046d5f0e;hb=4cb9c1a24bde6e29c5e8f05c7cd1de54ffdd342a;hp=1e7eda8b6349508d5bfb8cdc660a6e149d42f3ba;hpb=1e3c2e5904d628c001a8d65909b135ea9bf042aa;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; }