Skip to content

Commit e6c5a12

Browse files
authored
Fix priority of PhpdocSingleLineVarFixer to be run after before PhpdocLineSpanFixer (#301)
1 parent 29b7b69 commit e6c5a12

File tree

3 files changed

+84
-90
lines changed

3 files changed

+84
-90
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
[![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)
1010
[![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)
11-
![Tests](https://img.shields.io/badge/tests-2173-brightgreen.svg)
11+
![Tests](https://img.shields.io/badge/tests-2176-brightgreen.svg)
1212
[![Mutation testing badge](https://badge.stryker-mutator.io/github.com/kubawerlos/php-cs-fixer-custom-fixers/master)](https://stryker-mutator.github.io)
1313
[![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)
1414

src/Fixer/PhpdocSingleLineVarFixer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ class Foo {
3939

4040
public function getPriority(): int
4141
{
42-
return 0;
42+
// must be run after PhpdocLineSpanFixer
43+
return -1;
4344
}
4445

4546
public function isCandidate(Tokens $tokens): bool

0 commit comments

Comments
 (0)