File tree 1 file changed +3
-3
lines changed
src/Symfony/Component/Dotenv
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ final class Dotenv
45
45
* @throws FormatException when a file has a syntax error
46
46
* @throws PathException when a file does not exist or is not readable
47
47
*/
48
- public function load ($ path , ...$ paths )
48
+ public function load ($ path , string ...$ paths ): void
49
49
{
50
50
array_unshift ($ paths , $ path );
51
51
@@ -65,7 +65,7 @@ public function load($path, ...$paths)
65
65
*
66
66
* @param array $values An array of env variables
67
67
*/
68
- public function populate ($ values )
68
+ public function populate (array $ values ): void
69
69
{
70
70
foreach ($ values as $ name => $ value ) {
71
71
if (isset ($ _ENV [$ name ]) || isset ($ _SERVER [$ name ]) || false !== getenv ($ name )) {
@@ -88,7 +88,7 @@ public function populate($values)
88
88
*
89
89
* @throws FormatException when a file has a syntax error
90
90
*/
91
- public function parse ($ data , $ path = '.env ' )
91
+ public function parse (string $ data , string $ path = '.env ' )
92
92
{
93
93
$ this ->path = $ path ;
94
94
$ this ->data = str_replace (array ("\r\n" , "\r" ), "\n" , $ data );
You can’t perform that action at this time.
0 commit comments