Skip to content

Commit cade808

Browse files
committed
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 ------- fa4bade remove deprecated inheritEnvironmentVariables() method
2 parents 66564ed + fa4bade commit cade808

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

src/Symfony/Component/Process/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CHANGELOG
44
5.0.0
55
-----
66

7+
* removed `Process::inheritEnvironmentVariables()`
78
* removed `PhpProcess::setPhpBinary()`
89
* `Process` must be instantiated with a command array, use `Process::fromShellCommandline()` when the command should be parsed by the shell
910
* removed `Process::setCommandLine()`

src/Symfony/Component/Process/Process.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,24 +1176,6 @@ public function setInput($input)
11761176
return $this;
11771177
}
11781178

1179-
/**
1180-
* Sets whether environment variables will be inherited or not.
1181-
*
1182-
* @return self The current Process instance
1183-
*
1184-
* @deprecated since Symfony 4.4, env variables are always inherited
1185-
*/
1186-
public function inheritEnvironmentVariables(bool $inheritEnv = true)
1187-
{
1188-
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.4, env variables are always inherited.', __METHOD__), E_USER_DEPRECATED);
1189-
1190-
if (!$inheritEnv) {
1191-
throw new InvalidArgumentException('Not inheriting environment variables is not supported.');
1192-
}
1193-
1194-
return $this;
1195-
}
1196-
11971179
/**
11981180
* Performs a check between the timeout definition and the time the process started.
11991181
*

0 commit comments

Comments
 (0)