format/whitespace/encoding
In the format-laravel and format-psr12 presets. Safe fix.
What it does
PHP code MUST use only UTF-8 without BOM (remove BOM).
Configuration
[format.rules]
"whitespace/encoding" = true
To skip it in some files, add a @pun-ignore-file comment.
Replaces
encoding(php-cs-fixer)FileWhitespaceRule(phpstan-classes)whitespace.bom(phpstan)