github lkrms/pretty-php v0.4.40

latest releases: v0.4.72, v0.4.71, v0.4.70...
11 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.