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
minor #17855 import function env to avoid fatal error if copying docs (PhilETaylor)
This PR was squashed before being merged into the 5.4 branch.
Discussion
----------
import function env to avoid fatal error if copying docs
If you copy and past the example code, or dont realise then you get a fatal error message as `env` is a function not within the global scope.
<img width="1139" alt="ScreenShot-2023-02-02-21 25 27" src="https://user-images.githubusercontent.com/400092/216453124-166c7331-a0e6-4e1c-aff8-3aa6e4dfcc48.png">
This change in the docs just imports the function like phpStorm tells me to
```
use function Symfony\Component\DependencyInjection\Loader\Configurator\env;
```
Commits
-------
32dfcbd import function env to avoid fatal error if copying docs
0 commit comments