Skip to content

Commit 90734d7

Browse files
Disable stdErr redirection on Windows systems
1 parent 88c5313 commit 90734d7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Backup/Cli/Cmd.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,14 @@ public function getName()
5656
}
5757

5858
/**
59-
* Silent setter
59+
* Silence the 'Cmd' by redirecting its stdErr output to /dev/null.
60+
* The silence feature is disabled for Windows system.
6061
*
6162
* @param boolean $bool
6263
*/
6364
public function silence($bool = true)
6465
{
65-
$this->isSilent = $bool;
66+
$this->isSilent = $bool && !defined('PHP_WINDOWS_VERSION_BUILD');
6667
}
6768

6869
/**

0 commit comments

Comments
 (0)