CLI-1436: PHP 8.4 compatibility #2594
Annotations
1 error and 7 warnings
Run Infection for added files only
Process completed with exit code 1.
|
Run Infection for added files only:
src/Helpers/LocalMachineHelper.php#L82
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
/**
* Executes a buffered command.
*/
- public function execute(array $cmd, ?callable $callback = null, ?string $cwd = null, ?bool $printOutput = true, ?float $timeout = null, ?array $env = null, bool $stdin = true) : Process
+ public function execute(array $cmd, ?callable $callback = null, ?string $cwd = null, ?bool $printOutput = false, ?float $timeout = null, ?array $env = null, bool $stdin = true) : Process
{
$process = new Process($cmd);
$process = $this->configureProcess($process, $cwd, $printOutput, $timeout, $env, $stdin);
|
Run Infection for added files only:
src/Helpers/LocalMachineHelper.php#L82
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
/**
* Executes a buffered command.
*/
- public function execute(array $cmd, ?callable $callback = null, ?string $cwd = null, ?bool $printOutput = true, ?float $timeout = null, ?array $env = null, bool $stdin = true) : Process
+ public function execute(array $cmd, ?callable $callback = null, ?string $cwd = null, ?bool $printOutput = true, ?float $timeout = null, ?array $env = null, bool $stdin = false) : Process
{
$process = new Process($cmd);
$process = $this->configureProcess($process, $cwd, $printOutput, $timeout, $env, $stdin);
|
Run Infection for added files only:
src/Helpers/LocalMachineHelper.php#L100
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
*
* @param array|null $env
*/
- 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);
|
Run Infection for added files only:
src/Helpers/LocalMachineHelper.php#L100
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
*
* @param array|null $env
*/
- public function executeFromCmd(string $cmd, ?callable $callback = null, ?string $cwd = null, ?bool $printOutput = true, ?int $timeout = null, ?array $env = null) : Process
+ protected function executeFromCmd(string $cmd, ?callable $callback = null, ?string $cwd = null, ?bool $printOutput = true, ?int $timeout = null, ?array $env = null) : Process
{
$process = Process::fromShellCommandline($cmd);
$process = $this->configureProcess($process, $cwd, $printOutput, $timeout, $env);
|
Run Infection for added files only:
src/Helpers/LocalMachineHelper.php#L111
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
/**
* @param array|null $env
*/
- private function configureProcess(Process $process, ?string $cwd = null, ?bool $printOutput = true, ?float $timeout = null, ?array $env = null, bool $stdin = true) : Process
+ private function configureProcess(Process $process, ?string $cwd = null, ?bool $printOutput = false, ?float $timeout = null, ?array $env = null, bool $stdin = true) : Process
{
if (function_exists('posix_isatty') && $stdin && !@posix_isatty(STDIN)) {
$process->setInput(STDIN);
|
Run Infection for added files only:
src/Helpers/LocalMachineHelper.php#L111
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
/**
* @param array|null $env
*/
- private function configureProcess(Process $process, ?string $cwd = null, ?bool $printOutput = true, ?float $timeout = null, ?array $env = null, bool $stdin = true) : Process
+ private function configureProcess(Process $process, ?string $cwd = null, ?bool $printOutput = true, ?float $timeout = null, ?array $env = null, bool $stdin = false) : Process
{
if (function_exists('posix_isatty') && $stdin && !@posix_isatty(STDIN)) {
$process->setInput(STDIN);
|
Run Infection for added files only:
src/Helpers/LocalMachineHelper.php#L130
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 !== false) {
$callback = function (mixed $type, mixed $buffer) : void {
|
Loading