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

Docs: improve type declarations #189

Merged
merged 1 commit into from
Dec 26, 2023
Merged

Docs: improve type declarations #189

merged 1 commit into from
Dec 26, 2023

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Dec 26, 2023

Description

This commit addresses the @return tag for all sniff register() methods. Future commits may follow for other parts of the codebase.

PHP native tokens will always be integers.
PHP_CodeSniffer polyfilled and PHP_CodeSniffer native tokens will always be strings.

While some sniffs only return one or the other, I've chosen to update these tags to be the same across all sniffs for consistency.

Suggested changelog entry

N/A

This commit addresses the `@return` tag for all sniff `register()` methods. Future commits may follow for other parts of the codebase.

PHP native tokens will always be integers.
PHP_CodeSniffer polyfilled and PHP_CodeSniffer native tokens will always be strings.

While some sniffs only return one or the other, I've chosen to update these tags to be the same across all sniffs for consistency.
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.

1 participant