Skip to content

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Apr 26, 2025

Description

This commit introduces a new Config::prepareConfigDataForDisplay() method.

This new method allows for getting rid of some output buffering calls in select places.

Includes:

  • Deprecating the Config::printConfigData() method, which is now no longer used by PHPCS itself.
  • Tests for both methods.
  • Various minor efficiency fixes to the code.

Suggested changelog entry

Deprecated:

  • Config::printConfigData(). Use echo Config::prepareConfigDataForDisplay() instead.

This commit introduces a new `Config::prepareConfigDataForDisplay()` method.

This new method allows for getting rid of some output buffering calls in select places.

Includes:
* Deprecating the `Config::printConfigData()` method, which is now no longer used by PHPCS itself.
* Tests for both methods.
* Various minor efficiency fixes to the code.
@jrfnl
Copy link
Member Author

jrfnl commented Apr 29, 2025

Rebased without changes. Merging once the build has passed.

@jrfnl jrfnl force-pushed the phpcs-4.0/feature/remove-more-output-buffering-from-config-1 branch from 5c615b3 to 1ef3488 Compare April 29, 2025 13:29
@jrfnl jrfnl merged commit 7b652df into 4.x Apr 29, 2025
62 checks passed
@jrfnl jrfnl deleted the phpcs-4.0/feature/remove-more-output-buffering-from-config-1 branch April 29, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants