Prevent warning in proc_open()

This commit is contained in:
Benjamin Morel 2020-03-19 13:25:45 +01:00 committed by Fabien Potencier
parent 5f364af6a0
commit d43833a821
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ class Process implements \IteratorAggregate
@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.');