analyse/strings/invalid-date-time
In the analyse-recommended preset and every stricter one. Report only.
Configuration
[analyse.rules]
"strings/invalid-date-time" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
DateTimeInstantiationRule(phpstan-classes)