diff --git a/Dotenv.php b/Dotenv.php index b495d60..f97b3e4 100644 --- a/Dotenv.php +++ b/Dotenv.php @@ -58,7 +58,7 @@ public function setProdEnvs(array $prodEnvs): static /** * @param bool $usePutenv If `putenv()` should be used to define environment variables or not. - * Beware that `putenv()` is not thread safe, that's why this setting defaults to false + * Beware that `putenv()` is not thread safe, that's why it's not enabled by default * * @return $this */ @@ -72,8 +72,8 @@ public function usePutenv(bool $usePutenv = true): static /** * Loads one or several .env files. * - * @param string $path A file to load - * @param string[] ...$extraPaths A list of additional files to load + * @param string $path A file to load + * @param string ...$extraPaths A list of additional files to load * * @throws FormatException when a file has a syntax error * @throws PathException when a file does not exist or is not readable @@ -158,8 +158,8 @@ public function bootEnv(string $path, string $defaultEnv = 'dev', array $testEnv /** * Loads one or several .env files and enables override existing vars. * - * @param string $path A file to load - * @param string[] ...$extraPaths A list of additional files to load + * @param string $path A file to load + * @param string ...$extraPaths A list of additional files to load * * @throws FormatException when a file has a syntax error * @throws PathException when a file does not exist or is not readable diff --git a/LICENSE b/LICENSE index f234523..0223acd 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2016-2023 Fabien Potencier +Copyright (c) 2016-present Fabien Potencier Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Tests/DotenvTest.php b/Tests/DotenvTest.php index 47c9bfb..2089e4b 100644 --- a/Tests/DotenvTest.php +++ b/Tests/DotenvTest.php @@ -33,7 +33,7 @@ public function testParseWithFormatError($data, $error) } } - public function getEnvDataWithFormatErrors() + public static function getEnvDataWithFormatErrors() { $tests = [ ['FOO=BAR BAZ', "A value containing spaces must be surrounded by quotes in \".env\" at line 1.\n...FOO=BAR BAZ...\n ^ line 1 offset 11"], @@ -71,7 +71,7 @@ public function testParse($data, $expected) $this->assertSame($expected, $dotenv->parse($data)); } - public function getEnvData() + public static function getEnvData() { putenv('LOCAL=local'); $_ENV['LOCAL'] = 'local';