Commit 04aa652
committed
bug symfony#59252 [Stopwatch] bug symfony#54854 undefined key error when trying to fetch a mis… (Alex Niedre)
This PR was merged into the 7.2 branch.
Discussion
----------
[Stopwatch] bug symfony#54854 undefined key error when trying to fetch a mis…
| Q | A
| ------------- | ---
| Branch? | 7.2
| Bug fix? | yes
| New feature? |no
| Deprecations? |no
| Issues | Fix symfony#54854
| License | MIT
A minor bug was introduced in the related referenced issue which caused an unidentified key exception to trigger when referencing a section that was missing.
Reproduced here, as an example: https://3v4l.org/OFFLB
This MR addresses that and adds a simple test to prevent the same mistake in the future.
Commits
-------
c3cf577 bug symfony#54854 [Stopwatch] undefined key error when trying to fetch a missing sectionFile tree
2 files changed
+6
-1
lines changed- src/Symfony/Component/Stopwatch
- Tests
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
190 | 195 | | |
0 commit comments