Remove Zero-width space (ZWSP), Non-breaking space (NBSP) and other invisible unicode symbols.
Risky when strings contain intended invisible characters.
Whether characters should be replaced with escape sequences in strings.
Allowed types: bool
Default value: true
Default configuration.
--- Original
+++ New
-<?php echo "Hello World !";
+<?php echo "\u{200b}Hello\u{2007}World\u{a0}!";
With configuration: ['use_escape_sequences_in_strings' => false]
.
--- Original
+++ New
-<?php echo "Hello World !";
+<?php echo "Hello World !";
The rule is part of the following rule sets:
- @PHP70Migration:risky
- @PHP71Migration:risky
- @PHP74Migration:risky
- @PHP80Migration:risky
- @PhpCsFixer:risky
- @Symfony:risky