Skip to content
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

ENH Add identifiers to phpstan rules. #13

Merged

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli commented Aug 6, 2024

PHPStan errors need an identifier in order to be ignored: https://phpstan.org/user-guide/ignoring-errors

The docs don't talk about ignoring errors from custom rules, but we can see this being done in the built-in rules, e.g https://github.com/phpstan/phpstan-src/blob/1.12.x/src/Rules/FunctionCallParametersCheck.php#L596

Issue

This allows them to be ignored.
@emteknetnz emteknetnz merged commit f91a320 into silverstripe:1.2 Aug 6, 2024
8 checks passed
@emteknetnz emteknetnz deleted the pulls/1.2/add-identifiers branch August 6, 2024 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants