Changed
-
Improve CLI robustness, consistency and ergonomics
Changes include but are not limited to:
- Don't report syntax errors or non-critical code problems until formatting is complete
- Print a summary that includes resource usage when
--diff
or--check
are given - Report location of invalid syntax when formatting fails due to a syntax error
- Send messages to
STDERR
only, even when formatted code is not being written toSTDOUT
- Don't hide progress updates while
--diff
output is rendering - Remove superfluous
/./
segments from input paths when a directory with a configuration file is passed topretty-php
- Don't index input directories unnecessarily when
--print-config
is given
Fixed
- Fix string normalisation issue where some codepoints are escaped unnecessarily, e.g.
U+FE19