Skip to content

Removed all parse error warnings from sniffs #990

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

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Apr 14, 2025

Description

Ref:

Suggested changelog entry

  • None of the included sniffs will warn about possible parse errors any more.
    • This improves the experience when the file is being checked inside an editor during live coding.
    • If you want to detect parse errors, use the Generic.PHP.Syntax sniff or a dedicated linter instead.

Ref:
* squizlabs/PHP_CodeSniffer 2455
Just making sure that the test cases are clearly annotated as parse errors and that these should be ignored.
@jrfnl jrfnl merged commit c0bd2bb into 4.x Apr 15, 2025
52 checks passed
@jrfnl jrfnl deleted the phpcs-4.0/feature/sq-2455-sniffs-remove-parse-error-warnings branch April 15, 2025 10:32
@jrfnl jrfnl mentioned this pull request Apr 13, 2025
43 tasks
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