Skip to content

Commit f8a3c0d

Browse files
authored
Update dotenv.rst
1 parent 6325759 commit f8a3c0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/dotenv.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Access the value with ``getenv()`` in your code::
5959
// you can also use ``$_ENV`` or ``$_SERVER``
6060

6161
.. 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.
6363

6464
You should never store a ``.env`` file in your code repository as it might
6565
contain sensitive information; create a ``.env.dist`` file with sensible

0 commit comments

Comments
 (0)