coding-standard icon indicating copy to clipboard operation
coding-standard copied to clipboard

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

Open earthiverse opened this issue 9 months ago • 1 comments

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).

earthiverse avatar Mar 07 '25 00:03 earthiverse

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

bkdotcom avatar Mar 14 '25 16:03 bkdotcom