8000 minor #28359 [Dotenv] use array instead of variadic in Dotenv::doLoad… · symfony/symfony@14fa58e · GitHub
[go: up one dir, main page]

Skip to content

Commit 14fa58e

Browse files
committed
minor #28359 [Dotenv] use array instead of variadic in Dotenv::doLoad() (fmata)
This PR was merged into the 4.2-dev branch. Discussion ---------- [Dotenv] use array instead of variadic in Dotenv::doLoad() | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT According to comments done after merge in #26859. Commits ------- f3af242 [Dotenv] use array instead of variadic in Dotenv::doLoad()
2 parents e54dd4e + f3af242 commit 14fa58e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Dotenv/Dotenv.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ final class Dotenv
4747
*/
4848
public function load(string $path, string ...$paths): void
4949
{
50-
$this->doLoad(false, $path, ...$paths);
50+
$this->doLoad(false, $path, $paths);
5151
}
5252

5353
/**
@@ -61,7 +61,7 @@ public function load(string $path, string ...$paths): void
6161
*/
6262
public function overload(string $path, string ...$paths): void
6363
{
64-
$this->doLoad(true, $path, ...$paths);
64+
$this->doLoad(true, $path, $paths);
6565
}
6666

6767
/**
@@ -405,7 +405,7 @@ private function createFormatException($message)
405405
return new FormatException($message, new FormatExceptionContext($this->data, $this->path, $this->lineno, $this->cursor));
406406
}
407407

408-
private function doLoad(bool $overrideExistingVars, string $path, string ...$paths): void
408+
private function doLoad(bool $overrideExistingVars, string $path, array $paths): void
409409
{
410410
array_unshift($paths, $path);
411411

0 commit comments

Comments
 (0)
0