github lkrms/pretty-php v0.4.35

latest releases: v0.4.75, v0.4.74, v0.4.73...
13 months ago

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

Don't miss a new pretty-php release

NewReleases is sending notifications on new releases.