github lkrms/pretty-php v0.4.87

2 days ago

Changed

  • Don't place coalesce operators (??) at the end of the line when --operators-last is given

Fixed

  • Fix issue where newlines are not suppressed inside parentheses in DNF types

  • Fix issue where code from adjacent scopes may have the same indentation

    <?php
    
    // Before:
    $foo = bar('foo',
        'bar')
        ->baz();
    
    function ($foo,
        $bar) {
        baz();
    };
    
    // After:
    $foo = bar('foo',
            'bar')
        ->baz();
    
    function ($foo,
            $bar) {
        baz();
    };
  • Fix issue where only the last constructor in the document with a promoted parameter is formatted correctly

  • Fix issue where lists with leading delimiters may not be aligned when align-lists is enabled

Don't miss a new pretty-php release

NewReleases is sending notifications on new releases.