github lkrms/pretty-php v0.4.85

latest release: v0.4.86
6 days ago

Changed

  • Refactor hanging indentation to improve output quality and consistency, especially when formatting complex expressions that break over multiple lines
    • Vary indentation to reflect operator precedence where possible
    • Suppress the first level of hanging indentation in more single-expression contexts
  • Format more lists when strict-lists or align-lists are enabled:
    • import lists (e.g. use Foo\Bar, Foo\Baz)
    • import list groups (e.g. use Foo\{Bar, Baz})
    • trait insertion lists
    • insteadof lists when inserting traits
    • property and constant declaration lists
    • static and global variable lists
  • Add newlines between comma-delimited property and constant declarations

Fixed

  • Fix multiple issues with runaway mid-expression indentation
  • Fix issue where anonymous classes that implement multiple interfaces may not be formatted correctly in list contexts

Don't miss a new pretty-php release

NewReleases is sending notifications on new releases.