Commit fd5bc71
committed
bug symfony#52797 [VarExporter] Fix lazy ghost trait when using nullsafe operator (nicolas-grekas)
This PR was merged into the 6.3 branch.
Discussion
----------
[VarExporter] Fix lazy ghost trait when using nullsafe operator
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix symfony#52793
| License | MIT
My bad. Tests coming.
The issue happens only when using the nullsafe operator so the short-term workaround is using isset + ternary instead.
Commits
-------
7c7adab [VarExporter] Fix lazy ghost trait when using nullsafe operatorFile tree
2 files changed
+12
-2
lines changed- src/Symfony/Component/VarExporter
- Tests/Fixtures/LazyGhost
2 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
21 | 30 | | |
22 | 31 | | |
0 commit comments