X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Futils%2FBatchRowUpdate.php;h=fc8bde9ae616c67f9c31875aeff21711c61f66e7;hb=be42e09aa866d7def54ead06c91d5dc9c8210ce5;hp=1e7eda8b6349508d5bfb8cdc660a6e149d42f3ba;hpb=f43fa6f4f0e2cb60b8543daad661b48a3e0653a9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/utils/BatchRowUpdate.php b/includes/utils/BatchRowUpdate.php index 1e7eda8b63..fc8bde9ae6 100644 --- a/includes/utils/BatchRowUpdate.php +++ b/includes/utils/BatchRowUpdate.php @@ -77,7 +77,7 @@ class BatchRowUpdate { $this->reader = $reader; $this->writer = $writer; $this->generator = $generator; - $this->output = function() { + $this->output = function () { }; // nop } @@ -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; }