Skip to content

Commit

Permalink
Prevent warning in proc_open()
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel authored and fabpot committed Mar 20, 2020
1 parent 5f364af commit d43833a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Process/Process.php
Expand Up @@ -336,7 +336,7 @@ public function start(callable $callback = null/*, array $env = [*/)
@trigger_error('The provided cwd does not exist. Command is currently ran against getcwd(). This behavior is deprecated since Symfony 3.4 and will be removed in 4.0.', E_USER_DEPRECATED);
}

$this->process = proc_open($commandline, $descriptors, $this->processPipes->pipes, $this->cwd, $envPairs, $this->options);
$this->process = @proc_open($commandline, $descriptors, $this->processPipes->pipes, $this->cwd, $envPairs, $this->options);

if (!\is_resource($this->process)) {
throw new RuntimeException('Unable to launch a new process.');
Expand Down

0 comments on commit d43833a

Please sign in to comment.