github lkrms/pretty-php v0.4.71

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

Changed

  • Sort imports by name when --preset=symfony is used
  • Include statements terminated by close tags (?>) when sorting imports

Fixed

  • Fix issue where sorting imports by name produces unexpected results when aliases are used, e.g.

    <?php
    // Before fix
    use Doctrine\DBAL\Driver\Connection as ConnectionInterface;
    use Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware;
    use Doctrine\DBAL\Driver as DriverInterface;
    // After fix
    use Doctrine\DBAL\Driver as DriverInterface;
    use Doctrine\DBAL\Driver\Connection as ConnectionInterface;
    use Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware;

Don't miss a new pretty-php release

NewReleases is sending notifications on new releases.