CLI-1121: Fix sql imports #1937
Annotations
10 warnings
src/Helpers/LocalMachineHelper.php#L81
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
* @param float|null $timeout
* @param array|null $env
*/
- public function execute(array $cmd, callable $callback = NULL, string $cwd = NULL, bool $printOutput = TRUE, float $timeout = NULL, array $env = NULL) : Process
+ public function execute(array $cmd, callable $callback = NULL, string $cwd = NULL, bool $printOutput = false, float $timeout = NULL, array $env = NULL) : Process
{
$process = new Process($cmd);
$process = $this->configureProcess($process, $cwd, $printOutput, $timeout, $env);
|
src/Helpers/LocalMachineHelper.php#L96
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
*
* Windows does not support prepending commands with environment variables.
*/
- public function executeFromCmd(string $cmd, callable $callback = NULL, string $cwd = NULL, bool $printOutput = TRUE, int $timeout = NULL, array $env = NULL) : Process
+ public function executeFromCmd(string $cmd, callable $callback = NULL, string $cwd = NULL, bool $printOutput = false, int $timeout = NULL, array $env = NULL) : Process
{
$process = Process::fromShellCommandline($cmd);
$process = $this->configureProcess($process, $cwd, $printOutput, $timeout, $env);
|
src/Helpers/LocalMachineHelper.php#L107
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
* @param string|null $cwd
* @param array|null $env
*/
- private function configureProcess(Process $process, string $cwd = NULL, bool $printOutput = TRUE, float $timeout = NULL, array $env = NULL) : Process
+ private function configureProcess(Process $process, string $cwd = NULL, bool $printOutput = false, float $timeout = NULL, array $env = NULL) : Process
{
if (function_exists('posix_isatty') && !@posix_isatty(STDIN)) {
$process->setInput(STDIN);
|
src/Helpers/LocalMachineHelper.php#L125
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
$process->setTimeout($timeout);
return $process;
}
- private function executeProcess(Process $process, callable $callback = NULL, bool $printOutput = TRUE) : Process
+ private function executeProcess(Process $process, callable $callback = NULL, bool $printOutput = false) : Process
{
if ($callback === NULL && $printOutput) {
$callback = function (string $type, iterable|string $buffer) : void {
|
src/Helpers/LocalMachineHelper.php#L126
Escaped Mutant for Mutator "Identical":
--- Original
+++ New
@@ @@
}
private function executeProcess(Process $process, callable $callback = NULL, bool $printOutput = TRUE) : Process
{
- if ($callback === NULL && $printOutput) {
+ if ($callback !== NULL && $printOutput) {
$callback = function (string $type, iterable|string $buffer) : void {
$this->output->write($buffer);
};
|
src/Helpers/LocalMachineHelper.php#L126
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
}
private function executeProcess(Process $process, callable $callback = NULL, bool $printOutput = TRUE) : Process
{
- if ($callback === NULL && $printOutput) {
+ if ($callback === NULL || $printOutput) {
$callback = function (string $type, iterable|string $buffer) : void {
$this->output->write($buffer);
};
|
src/Helpers/LocalMachineHelper.php#L153
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
private function runAsync(Process $process) : void
{
$process->start();
- // Ignore "Write of <n> bytes failed with errno=32 Broken pipe" errors.
- set_error_handler(static fn() => NULL);
+
while ($process->isRunning()) {
$process->checkTimeout();
usleep(1000);
|
src/Helpers/LocalMachineHelper.php#L156
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
// Ignore "Write of <n> bytes failed with errno=32 Broken pipe" errors.
set_error_handler(static fn() => NULL);
while ($process->isRunning()) {
- $process->checkTimeout();
+
usleep(1000);
}
restore_error_handler();
|
src/Helpers/LocalMachineHelper.php#L157
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
set_error_handler(static fn() => NULL);
while ($process->isRunning()) {
$process->checkTimeout();
- usleep(1000);
+ usleep(999);
}
restore_error_handler();
}
|
src/Helpers/LocalMachineHelper.php#L157
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
set_error_handler(static fn() => NULL);
while ($process->isRunning()) {
$process->checkTimeout();
- usleep(1000);
+ usleep(1001);
}
restore_error_handler();
}
|
The logs for this run have expired and are no longer available.
Loading