Changed
-
Always preserve blank lines between statements (even when
--ignore-newlines
is given) -
Suppress line breaks between
,
and=>
in match expressions, e.g.<?php match ($a) { 0, => false, };
-
Suppress blank lines before and after comments in intra-statement contexts, e.g.
<?php class Foo // { public function bar() {} }
Fixed
- Fix issue where, in strict PSR-12 mode, the
=>
operator after an arrow function that returns by reference is not moved to the next line