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:
Nicolas Grekas
2025-08-27 09:45:05 +02:00

View File

@@ -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 {