Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3af242

Browse files
committed
[Dotenv] use array instead of variadic in Dotenv::doLoad()
1 parent 228b220 commit f3af242

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)