Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -874,9 +874,10 @@ the right situation:
but the overrides only apply to one environment.

*Real* environment variables always win over env vars created by any of the
``.env`` files. This behavior depends on
`variables_order <http://php.net/manual/en/ini.core.php#ini.variables-order>`_ to
contain an ``E`` to expose the ``$_ENV`` superglobal.
``.env`` files. Note that this behavior depends on the
`variables_order <http://php.net/manual/en/ini.core.php#ini.variables-order>`_
configuration, which must contain an ``E`` to expose the ``$_ENV`` superglobal.
This is the default configuration in PHP.

The ``.env`` and ``.env.<environment>`` files should be committed to the
repository because they are the same for all developers and machines. However,
Expand Down