Skip to content

Commit 9101bc2

Browse files
committed
Fix: Disable incorrectly behaving PhpdocAlignFixer
1 parent 352a94f commit 9101bc2

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

ecs.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,8 @@
522522
'remove_inheritdoc' => true, // remove @inheritDoc tags
523523
])
524524
// All items of the given PHPDoc tags must be left-aligned.
525-
->withConfiguredRule(PhpdocAlignFixer::class, ['align' => 'left'])
525+
// @TODO: Re-enable if https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/8052 is fixed
526+
//->withConfiguredRule(PhpdocAlignFixer::class, ['align' => 'left'])
526527
// Annotations in PHPDoc should be ordered in defined sequence.
527528
->withConfiguredRule(PhpdocOrderFixer::class, ['order' => ['param', 'return', 'throws']])
528529
// Order phpdoc tags by value.

tests/Integration/Fixtures/PhpDoc.wrong.php.inc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ class PhpDoc
2020
*
2121
*
2222
*
23-
* @param string $first
24-
* @throws \Exception
25-
* @param int|float $second Second parameter does have a comment, unlike the first one.
26-
* @param string|null $third Third parameter is optional and has a default value and multilne comment. Lorem
23+
* @param string $first
24+
* @throws \Exception
25+
* @param int|float $second Second parameter does have a comment, unlike the first one.
26+
* @param string|null $third Third parameter is optional and has a default value and multilne comment. Lorem
2727
* ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec purus nec nunc ultricies ultricies.
2828
* Nullam nec purus nec nunc ultricies ultricies. Nullam nec purus nec nunc ultricies ultricies.
29-
* @return mixed There is also information about return type.
29+
* @return mixed There is also information about return type.
3030
*/
3131
public function veryWellDocumented(string $first, int|float $second, ?string $third = '3rd'): mixed
3232
{

0 commit comments

Comments
 (0)