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
Merge "Use MediaWiki\SuppressWarnings around trigger_error('') instead @"
[lhc/web/wiklou.git]
/
includes
/
shell
/
Command.php
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 );
// 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 ) {
restore_error_handler();
$readPipes = array_filter( $pipes, function ( $fd ) use ( $desc ) {