github lkrms/pretty-php v0.4.42

latest releases: v0.4.71, v0.4.70, v0.4.69...
10 months ago

Added

  • Add (experimental) support for PHP 8.3

Fixed

  • Fix issue where CompileError exceptions thrown by the PHP 8.3 tokenizer are not caught

  • Fix ternary alignment issue when ?? appears in the first expression

    Before:

    <?php
    $foo = $bar
        ? $qux[$i] ?? $fallback
            : $quux;

    After:

    <?php
    $foo = $bar
        ? $qux[$i] ?? $fallback
        : $quux;
  • Fix issue where labels after close braces are not correctly identified

    Before:

    <?php
    if ($foo) {
        goto bar;
    }
    bar: qux();

    After:

    <?php
    if ($foo) {
        goto bar;
    }
    bar:
    qux();

Don't miss a new pretty-php release

NewReleases is sending notifications on new releases.