You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/dotenv.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ Access the value with ``getenv()`` in your code::
59
59
// you can also use ``$_ENV`` or ``$_SERVER``
60
60
61
61
.. versionadded:: 4.2
62
-
Passing ``true`` in ``Dotenv()`` constructor allow you to overwrite existing environment variables.
62
+
Passing ``$overrideExistingVars`` as ``true`` in ``Dotenv::populate()`` or calling ``Dotenv::overload()`` instead of ``Dotenv::load()`` allow you to overwrite existing environment variables.
63
63
64
64
You should never store a ``.env`` file in your code repository as it might
65
65
contain sensitive information; create a ``.env.dist`` file with sensible
0 commit comments