minor #32620 [Process] remove deprecated inheritEnvironmentVariables() method (xabbuh)

This PR was merged into the 5.0-dev branch.

Discussion
----------

[Process] remove deprecated inheritEnvironmentVariables() method

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | yes
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

fa4bade2a4 remove deprecated inheritEnvironmentVariables() method
This commit is contained in:
Fabien Potencier 2019-07-19 11:17:57 +02:00
commit cade80889b
2 changed files with 1 additions and 18 deletions

View File

@ -4,6 +4,7 @@ CHANGELOG
5.0.0
-----
* removed `Process::inheritEnvironmentVariables()`
* removed `PhpProcess::setPhpBinary()`
* `Process` must be instantiated with a command array, use `Process::fromShellCommandline()` when the command should be parsed by the shell
* removed `Process::setCommandLine()`

View File

@ -1176,24 +1176,6 @@ class Process implements \IteratorAggregate
return $this;
}
/**
* Sets whether environment variables will be inherited or not.
*
* @return self The current Process instance
*
* @deprecated since Symfony 4.4, env variables are always inherited
*/
public function inheritEnvironmentVariables(bool $inheritEnv = true)
{
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.4, env variables are always inherited.', __METHOD__), E_USER_DEPRECATED);
if (!$inheritEnv) {
throw new InvalidArgumentException('Not inheriting environment variables is not supported.');
}
return $this;
}
/**
* Performs a check between the timeout definition and the time the process started.
*