diff options
author | Derick Alangi <alangiderick@gmail.com> | 2019-06-12 13:47:06 +0100 |
---|---|---|
committer | Derick Alangi <alangiderick@gmail.com> | 2019-07-23 08:43:44 +0100 |
commit | 3cfe00b736b2dcd8ba20a1f66dd929c6bda88cd2 (patch) | |
tree | 1582aec0c85becc192b4d0292ff3a499648a4b58 /includes/shell | |
parent | 0854352fa75ce1cd77bf3c28905477c6d7c66509 (diff) | |
download | mediawikicore-3cfe00b736b2dcd8ba20a1f66dd929c6bda88cd2.tar.gz mediawikicore-3cfe00b736b2dcd8ba20a1f66dd929c6bda88cd2.zip |
Avoid the use of silence operator (@) and use AtEase methods
Bug: T26159
Change-Id: I973cc607fd909d47faf2773a02835af83bbc301f
Diffstat (limited to 'includes/shell')
-rw-r--r-- | includes/shell/Command.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/shell/Command.php b/includes/shell/Command.php index 7742075e0f7d..4ba78688dca3 100644 --- a/includes/shell/Command.php +++ b/includes/shell/Command.php @@ -446,8 +446,9 @@ class Command { // stream_select parameter names are from the POV of us being able to do the operation; // proc_open desriptor types are from the POV of the process doing it. // So $writePipes is passed as the $read parameter and $readPipes as $write. - // phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged - $numReadyPipes = @stream_select( $writePipes, $readPipes, $emptyArray, $timeout ); + AtEase::suppressWarnings(); + $numReadyPipes = stream_select( $writePipes, $readPipes, $emptyArray, $timeout ); + AtEase::restoreWarnings(); if ( $numReadyPipes === false ) { $error = error_get_last(); if ( strncmp( $error['message'], $eintrMessage, strlen( $eintrMessage ) ) == 0 ) { |