Skip to content

Commit 6c2f62b

Browse files
committed
Attach requirement version fix to first error per attribute only
Several errors fixing the same string node caused a MergeConflictException.
1 parent c75b155 commit 6c2f62b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎tests/Rules/PHPUnit/data/requires-php-version-fixable.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ public function testDoubleQuoted(): void {
4444

4545
}
4646

47-
#[RequiresPhp('8.0'), RequiresPhpunit('>=11')]
47+
#[RequiresPhp('8.0')]
48+
#[RequiresPhpunit('>=11')]
4849
public function testMultipleAttributes(): void {
4950

5051
}

‎tests/Rules/PHPUnit/data/requires-php-version-fixable.php.fixed‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ class FixableTest extends TestCase
4444

4545
}
4646

47-
#[RequiresPhp('>=8.0.0'), RequiresPhpunit('>=11.0.0')]
47+
#[RequiresPhp('>=8.0.0')]
48+
#[RequiresPhpunit('>=11.0.0')]
4849
public function testMultipleAttributes(): void {
4950

5051
}

0 commit comments

Comments
 (0)