Commit 999f2da
committed
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 docs1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
1193 | 1194 | | |
1194 | 1195 | | |
1195 | 1196 | | |
| 1197 | + | |
1196 | 1198 | | |
1197 | 1199 | | |
1198 | 1200 | | |
| |||
0 commit comments