Skip to content

Commit 218a4ac

Browse files
alexandre-dauboisnicolas-grekas
authored andcommitted
[Dotent] Add PHPDoc for $overrideExistingVars
1 parent 923b2a8 commit 218a4ac

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/Symfony/Component/Dotenv/Dotenv.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@ public function load(string $path, string ...$extraPaths): void
9898
* .env.local is always ignored in test env because tests should produce the same results for everyone.
9999
* .env.dist is loaded when it exists and .env is not found.
100100
*
101-
* @param string $path A file to load
102-
* @param string|null $envKey The name of the env vars that defines the app env
103-
* @param string $defaultEnv The app env to use when none is defined
104-
* @param array $testEnvs A list of app envs for which .env.local should be ignored
101+
* @param string $path A file to load
102+
* @param string|null $envKey The name of the env vars that defines the app env
103+
* @param string $defaultEnv The app env to use when none is defined
104+
* @param array $testEnvs A list of app envs for which .env.local should be ignored
105+
* @param bool $overrideExistingVars Whether existing environment variables set by the system should be overridden
105106
*
106107
* @throws FormatException when a file has a syntax error
107108
* @throws PathException when a file does not exist or is not readable
@@ -182,7 +183,7 @@ public function overload(string $path, string ...$extraPaths): void
182183
* Sets values as environment variables (via putenv, $_ENV, and $_SERVER).
183184
*
184185
* @param array $values An array of env variables
185-
* @param bool $overrideExistingVars true when existing environment variables must be overridden
186+
* @param bool $overrideExistingVars Whether existing environment variables set by the system should be overridden
186187
*/
187188
public function populate(array $values, bool $overrideExistingVars = false): void
188189
{

0 commit comments

Comments
 (0)