mirror of
https://github.com/symfony/framework-bundle.git
synced 2026-03-24 01:12:20 +01:00
Merge branch '6.4' into 7.3
* 6.4: [HttpClient] Fix PHP 8.5 deprecation using str_increment() [FrameworkBundle] Don’t collect CLI profiles if the profiler is disabled
This commit is contained in:
@@ -109,6 +109,10 @@ final class ConsoleProfilerListener implements EventSubscriberInterface
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$this->profiler->isEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (null !== $sectionId = $request->attributes->get('_stopwatch_token')) {
|
||||
// we must close the section before saving the profile to allow late collect
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user