lint/strings/no-non-printable-character
In the code-quality set. Unsafe fix: it can change behaviour. Intent: suspicious.
What it does
Remove Zero-width space (ZWSP), Non-breaking space (NBSP) and other invisible unicode symbols.
Configuration
[lint.rules]
"strings/no-non-printable-character" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
use-escape-sequences-in-strings |
bool |
Any | true |
use_escape_sequences_in_strings |
Replaces
non_printable_character(php-cs-fixer, risky)