X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fshell%2FCommand.php;fp=includes%2Fshell%2FCommand.php;h=2afc548d0877e2d30fca068264156de1381fc653;hp=1154e05886de77ef821233ba3fb591faa2959c2a;hb=0770f85a0a293e6c7af6f1d3d3a1dbd2d13c1e09;hpb=7bf88845c9c6fdb469ab75c674bbffb037ccb8f2 diff --git a/includes/shell/Command.php b/includes/shell/Command.php index 1154e05886..2afc548d08 100644 --- 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 ) {