Skip to content

Question: Is there a sniff for requiring short nullable in PHPDocs? #1732

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

Open
earthiverse opened this issue Mar 7, 2025 · 1 comment
Open

Comments

@earthiverse
Copy link

I see SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition for requiring array|null over null|array.

I see SlevomatCodingStandard.TypeHints.DNFTypeHintFormat for requiring ?array over array|null in PHP code (not docs).

@bkdotcom
Copy link
Contributor

I don't belive "?array" is a valid phpdoc type-hint

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

No branches or pull requests

2 participants