8000 [Dotenv] use array instead of variadic in Dotenv::doLoad() by fmata · Pull Request #28359 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Symfony/Component/Dotenv/Dotenv.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ final class Dotenv
*/
public function load(string $path, string ...$paths): void
{
$this->doLoad(false, $path, ...$paths);
$this->doLoad(false, $path, $paths);
}

/**
Expand All @@ -61,7 +61,7 @@ public function load(string $path, string ...$paths): void
*/
public function overload(string $path, string ...$paths): void
{
$this->doLoad(true, $path, ...$paths);
$this->doLoad(true, $path, $paths);
}

/**
Expand Down Expand Up @@ -405,7 +405,7 @@ private function createFormatException($message)
return new FormatException($message, new FormatExceptionContext($this->data, $this->path, $this->lineno, $this->cursor));
}

private function doLoad(bool $overrideExistingVars, string $path, string ...$paths): void
private function doLoad(bool $overrideExistingVars, string $path, array $paths): void
{
array_unshift($paths, $path);

Expand Down
0