Skip to content

Commit 2aec206

Browse files
minor symfony#52286 [Dotenv] Add PHPDoc for $overrideExistingVars (alexandre-daubois)
This PR was merged into the 5.4 branch. Discussion ---------- [Dotenv] Add PHPDoc for `$overrideExistingVars` | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Following symfony/symfony-docs#19082 (comment) Commits ------- 218a4ac [Dotent] Add PHPDoc for `$overrideExistingVars`
2 parents 3329812 + 218a4ac commit 2aec206

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)