php-collective / code-sniffer

This sniffer package builds on top of PSR-2/12 and ships with a lot of additional fixers on top.
MIT License
5 stars 0 forks source link

Fix up ?type to type|null in docblocks #16

Closed dereuromark closed 4 weeks ago

dereuromark commented 1 month ago

Currently, some (bad) IDEs seem to create invalid docblocks

* @param ?\Cake\Chronos\ChronosDate $cutOffDate

instead of

* @param \Cake\Chronos\ChronosDate|null $cutOffDate

This should be normalized in the sniffs prior to the null check.