Skip to content

Conversation

@herbertroth
Copy link
Member

This pull request refactors how the verbosity parameter is retrieved in the DebugSubscriber to improve code consistency and reliability. The change replaces the direct usage of Symfony's ParameterBag::getInt with the more robust ParameterBagHelper::getInt method.

Improvements to parameter handling:

  • Updated the import statements in src/EventSubscriber/DebugSubscriber.php to include ParameterBagHelper, enabling the use of its helper methods.
  • Changed the retrieval of the verbosity parameter in onKernelResponse to use ParameterBagHelper::getInt, ensuring consistent and safer parameter extraction.

@sonarqubecloud
Copy link

@herbertroth herbertroth merged commit 1d6e9c6 into 2.x Oct 23, 2025
10 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 23, 2025
@herbertroth herbertroth added this to the 2.3.0 milestone Oct 23, 2025
@herbertroth herbertroth deleted the symfony7-next-steps branch October 23, 2025 13:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant