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
oralign-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
andglobal
variable lists
- import lists (e.g.
- 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