Skip to content

Commit 68b03da

Browse files
committed
minor #19732 [Configuration] Clarify variables_order (alexandre-daubois)
This PR was merged into the 6.4 branch. Discussion ---------- [Configuration] Clarify `variables_order` Fix #19730 Commits ------- faf2615 [Configuration] Clarify `variables_order`
2 parents ed6b870 + faf2615 commit 68b03da

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

configuration.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -874,9 +874,10 @@ the right situation:
874874
but the overrides only apply to one environment.
875875

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

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

0 commit comments

Comments
 (0)