2.1.0
New sniff added: MoxioSniffs.PHP.DisallowDateTime
: This sniff disallows usage of \DateTime
and promotes the use of \DateTimeImmutable
instead. The former being mutable can lead to some subtle but nasty bugs. Thanks to @nikolaposa for the blogpost that inspired this sniff, and to the folks at @slevomat for their great collection of helpers for PHP_CodeSniffer.