Skip to content

Fixer: improve debug information #906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2025
Merged

Fixer: improve debug information #906

merged 1 commit into from
Apr 1, 2025

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Mar 27, 2025

Description

If an error/fixer conflict occurs while running the PHPCBF, additional information about the issue will be displayed in verbose mode, however, the code creating the debug info did not take into account that part of the fixer code may be in helper classes, instead of directly in the sniff class.

This should fix that and make the debug information more, well... informational ;-)

Suggested changelog entry

Fixed potential InvalidArgumentException when displaying verbose information about issues encountered while running the fixer.

Related issues/external references

Related to slevomat/coding-standard#1739

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

If an error/fixer conflict occurs while running the PHPCBF, additional information about the issue will be displayed in verbose mode, however, the code creating the debug info did not take into account that part of the fixer code may be in helper classes, instead of directly in the sniff class.

This should fix that and make the debug information more, well... informational ;-)

Related to slevomat/coding-standard 1739
@jrfnl jrfnl merged commit 32f7d88 into master Apr 1, 2025
61 checks passed
@jrfnl jrfnl deleted the feature/slevomat-1739 branch April 1, 2025 23:33
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.

3 participants