dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: Prepare for mediawiki/mediawiki-codesniffer to 0.9.0
[lhc/web/wiklou.git]
/
includes
/
utils
/
BatchRowUpdate.php
diff --git
a/includes/utils/BatchRowUpdate.php
b/includes/utils/BatchRowUpdate.php
index
1e7eda8
..
fc8bde9
100644
(file)
--- 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->reader = $reader;
$this->writer = $writer;
$this->generator = $generator;
- $this->output = function() {
+ $this->output = function
() {
}; // nop
}
}; // nop
}
@@
-112,15
+112,8
@@
class BatchRowUpdate {
*
* @param callable $output A callback taking a single string
* parameter to output
*
* @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;
}
$this->output = $output;
}