Steps to reproduce
Add a parameter with a parameter with a default value of null and without any type declaration, but with a nullable PHPDoc type. Example
Actual result
PHPCS violation saying
Use nullable type("?Title") for parameters documented as nullable (MediaWiki.Commenting.FunctionComment.PHP71NullableDocOptionalArg)
Expected result
No PHPCS violation
Software version
mediawiki/mediawiki-codesniffer 47.0.0
Other information
Per https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#Don't_add_type_declarations_for_%22big%22_legacy_classes, this parameter should not have a type declaration.