Skip to content

Commit

Permalink
Fix priority of PhpdocSingleLineVarFixer to be run after before Phpdo…
Browse files Browse the repository at this point in the history
…cLineSpanFixer (#301)
  • Loading branch information
kubawerlos committed May 6, 2020
1 parent 29b7b69 commit e6c5a12
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 90 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -8,7 +8,7 @@

[![CI Status](https://github.com/kubawerlos/php-cs-fixer-custom-fixers/workflows/CI/badge.svg?branch=master&event=push)](https://github.com/kubawerlos/php-cs-fixer-custom-fixers/actions)
[![Code coverage](https://img.shields.io/coveralls/github/kubawerlos/php-cs-fixer-custom-fixers/master.svg)](https://coveralls.io/github/kubawerlos/php-cs-fixer-custom-fixers?branch=master)
![Tests](https://img.shields.io/badge/tests-2173-brightgreen.svg)
![Tests](https://img.shields.io/badge/tests-2176-brightgreen.svg)
[![Mutation testing badge](https://badge.stryker-mutator.io/github.com/kubawerlos/php-cs-fixer-custom-fixers/master)](https://stryker-mutator.github.io)
[![Psalm type coverage](https://shepherd.dev/github/kubawerlos/php-cs-fixer-custom-fixers/coverage.svg)](https://shepherd.dev/github/kubawerlos/php-cs-fixer-custom-fixers)

Expand Down
3 changes: 2 additions & 1 deletion src/Fixer/PhpdocSingleLineVarFixer.php
Expand Up @@ -39,7 +39,8 @@ class Foo {

public function getPriority(): int
{
return 0;
// must be run after PhpdocLineSpanFixer
return -1;
}

public function isCandidate(Tokens $tokens): bool
Expand Down

0 comments on commit e6c5a12

Please sign in to comment.