We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 407631c commit 408a33eCopy full SHA for 408a33e
src/Symfony/Component/Dotenv/Dotenv.php
@@ -45,10 +45,11 @@ final class Dotenv
45
* @throws FormatException when a file has a syntax error
46
* @throws PathException when a file does not exist or is not readable
47
*/
48
- public function load($path/*, ...$paths*/)
+ public function load($path, ...$paths)
49
{
50
- // func_get_args() to be replaced by a variadic argument for Symfony 4.0
51
- foreach (func_get_args() as $path) {
+ array_unshift($paths, $path);
+
52
+ foreach ($paths as $path) {
53
if (!is_readable($path) || is_dir($path)) {
54
throw new PathException($path);
55
}
0 commit comments