Releases
v0.4.88
Changed
Remove binary prefixes (e.g. b
in b"foo$bar"
) from all strings, not just constant strings
Remove double quotes and leading whitespace from heredoc and nowdoc labels (e.g. <<< "EOF"
becomes <<<EOF
)
Improve declaration spacing
Add blank lines after loosely-spaced declarations so comments cannot start on the next line
Allow for comments between DocBlocks and subsequent declarations when checking input spacing and suppressing blank lines
Don't always add a blank line between declarations separated by comments other than DocBlocks
Improve readability of anonymous functions with lexical variables by adding newlines before:
parameter lists that break over multiple lines
lexical variable lists that break over multiple lines
Fixed
Fix issue where nowdocs with whitespace before the label may not be formatted correctly (reported in #195 )
Fix issue where newlines are suppressed before heredocs at the start of statements when --psr12
is given
Fix issue where heredocs with a b
prefix are not formatted correctly
Fix issue where code needs to be formatted twice for correct placement of brackets in some expressions
Fix issue where grouped imports like use A\B\{C\D, function b\c, const D};
trigger an exception
Fix issue where exceptions like Deprecated: The (real) cast is deprecated, use (float) instead
are thrown on PHP 7.4
Fix issue where binary strings may trigger an exception on PHP 7.4
Fix inconsistent output when input uses multiple line endings
Security
Fail with an exception if pretty-php
is running as root
You can’t perform that action at this time.