Skip to content

Commit 031f8db

Browse files
committed
bug symfony#49249 [Dotenv] Fix phpdoc Dotenv (alamirault)
This PR was merged into the 5.4 branch. Discussion ---------- [Dotenv] Fix phpdoc Dotenv | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> <!-- Replace this notice by a short README for your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the latest branch. - For new features, provide some code snippets to help understand usage. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Commits ------- 54f9fbd [Dotenv] Fix phpdoc Dotenv
2 parents fc9837e + 54f9fbd commit 031f8db

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Symfony/Component/Dotenv/Dotenv.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ public function usePutenv(bool $usePutenv = true): self
8181
/**
8282
* Loads one or several .env files.
8383
*
84-
* @param string $path A file to load
85-
* @param string[] ...$extraPaths A list of additional files to load
84+
* @param string $path A file to load
85+
* @param string ...$extraPaths A list of additional files to load
8686
*
8787
* @throws FormatException when a file has a syntax error
8888
* @throws PathException when a file does not exist or is not readable
@@ -98,10 +98,10 @@ 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 $envKey|null 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
105105
*
106106
* @throws FormatException when a file has a syntax error
107107
* @throws PathException when a file does not exist or is not readable
@@ -167,8 +167,8 @@ public function bootEnv(string $path, string $defaultEnv = 'dev', array $testEnv
167167
/**
168168
* Loads one or several .env files and enables override existing vars.
169169
*
170-
* @param string $path A file to load
171-
* @param string[] ...$extraPaths A list of additional files to load
170+
* @param string $path A file to load
171+
* @param string ...$extraPaths A list of additional files to load
172172
*
173173
* @throws FormatException when a file has a syntax error
174174
* @throws PathException when a file does not exist or is not readable

0 commit comments

Comments
 (0)