github lkrms/pretty-php v0.4.40

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

Fixed

  • Fix issue where XML files are incorrectly identified as PHP files

  • Fix issue where ternary operators are not always identified correctly

    Before:

    <?php
    $filter =
        $exclude
            ? function ($value, $key, $iterator) use ($exclude)
            : bool {
                return (bool) preg_match($exclude, $key);
            }
        : null;

    After:

    <?php
    $filter =
        $exclude
            ? function ($value, $key, $iterator) use ($exclude): bool {
                return (bool) preg_match($exclude, $key);
            }
            : null;

Don't miss a new pretty-php release

NewReleases is sending notifications on new releases.