dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
7bf8884
)
Merge "Use MediaWiki\SuppressWarnings around trigger_error('') instead @"
author
D3r1ck01
<alangiderick@gmail.com>
Wed, 19 Dec 2018 17:15:17 +0000
(17:15 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Wed, 19 Dec 2018 17:15:17 +0000
(17:15 +0000)
includes/shell/Command.php
patch
|
blob
|
history
diff --git
a/includes/shell/Command.php
b/includes/shell/Command.php
index
1154e05
..
2afc548
100644
(file)
--- a/
includes/shell/Command.php
+++ b/
includes/shell/Command.php
@@
-433,8
+433,9
@@
class Command {
// TODO replace with clear_last_error when requirements are bumped to PHP7
set_error_handler( function () {
}, 0 );
- // phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged
- @trigger_error( '' );
+ \MediaWiki\suppressWarnings();
+ trigger_error( '' );
+ \MediaWiki\restoreWarnings();
restore_error_handler();
$readPipes = array_filter( $pipes, function ( $fd ) use ( $desc ) {