lint/style/prefer-date-time-immutable
Not in any set. Unsafe fix: it can change behaviour. Intent: suspicious.
What it does
Class DateTimeImmutable should be used instead of DateTime.
Configuration
[lint.rules]
"style/prefer-date-time-immutable" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Replaces
date_time_immutable(php-cs-fixer, risky)