Skip to content

v0.4.86

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 08 Jan 08:35
· 13 commits to main since this release
v0.4.86
af5e85f

A lot of refactoring has gone into this release, so there may be changes not picked up in testing or not mentioned here.

If you think this version of pretty-php does something worse, not better, please open an issue or start a discussion.

Added

  • Add --no-problems option to CLI command for better control of output verbosity

Changed

  • Improve formatting of for loops with expressions that break over multiple lines
  • When align-data is enabled, don't align = in parameter lists with no leading newline unless strict-lists or align-lists are also enabled
  • When the symfony preset is enabled, don't suppress newlines in parameter lists with no promoted constructor parameters if they have a trailing comma

Fixed

  • Fix issue where newlines are collapsed between close braces and subsequent increment or decrement operators
  • Fix issue where blank lines before and after comments are not preserved in alternative syntax constructs
  • Fix issue where unnecessary whitespace is not removed from empty lines in nested heredocs
  • Fix inconsistent formatting of lists with trailing AND leading commas
  • Fix blank-before-return issue where blank lines are not added before yield statements in alternative syntax constructs
  • Fix align-lists issue where alternative syntax constructs may not be indented correctly
  • Fix align-data issue where assignments in alternative syntax constructs are not aligned