Skip to content

Commit

Permalink
bug PHP-CS-Fixer#1424 Fixed the import fixer priorities (GrahamCampbell)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.10 branch.

Discussion
----------

Fixed the import fixer priorities

Commits
-------

ae91d2c Fixed the import fixer priorities
  • Loading branch information
keradus committed Oct 12, 2015
2 parents 994ca38 + ae91d2c commit 0f8a4dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Symfony/CS/Fixer/Contrib/OrderedUseFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ public function getDescription()
*/
public function getPriority()
{
// should be run after the MultipleUseFixer
return -10;
// should be run after the MultipleUseFixer and RemoveLeadingSlashUseFixer
return -30;
}

/**
Expand Down
1 change: 1 addition & 0 deletions Symfony/CS/Tests/FixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ public function getFixersPriorityCases()
array($fixers['unused_use'], $fixers['extra_empty_lines']),
array($fixers['multiple_use'], $fixers['unused_use']),
array($fixers['multiple_use'], $fixers['ordered_use']),
array($fixers['remove_leading_slash_use'], $fixers['ordered_use']),
array($fixers['remove_lines_between_uses'], $fixers['ordered_use']),
array($fixers['unused_use'], $fixers['remove_leading_slash_use']),
array($fixers['multiple_use'], $fixers['remove_leading_slash_use']),
Expand Down

0 comments on commit 0f8a4dd

Please sign in to comment.