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;