Commit 179b553
committed
bug symfony#61529 [FrameworkBundle] Don’t collect CLI profiles if the profiler is disabled (MatTheCat)
This PR was merged into the 6.4 branch.
Discussion
----------
[FrameworkBundle] Don’t collect CLI profiles if the profiler is disabled
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix symfony#60409
| License | MIT
symfony#59515 removed the check for the profiler being enabled, but if it isn’t its `collect` method will return `null` and the `ConsoleProfilerListener` will crash when trying to call `saveProfile`.
Commits
-------
e18ce44 [FrameworkBundle] Don’t collect CLI profiles if the profiler is disabledFile tree
1 file changed
+4
-0
lines changed- src/Symfony/Bundle/FrameworkBundle/EventListener
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
112 | 116 | | |
113 | 117 | | |
114 | 118 | | |
| |||
0 commit comments