Moxio / php-codesniffer-sniffs

Custom sniffs for PHP_CodeSniffer
MIT License
17 stars 10 forks source link

Add sniff detecting date create from format with formats with unspecified time component #19

Closed mwijngaard closed 1 year ago

mwijngaard commented 1 year ago

This prevents DateTime objects used as simple dates (without time component) from being initialized with the current time.