From 9e13590d1c97e910767e9d708059f193995d4f8a Mon Sep 17 00:00:00 2001 From: Chris Nobody Date: Tue, 14 Dec 2021 12:24:04 +0000 Subject: [PATCH] PhpdocAlignFixer: fix property-read/property-write descriptions not getting aligned --- src/Fixer/Phpdoc/PhpdocAlignFixer.php | 2 ++ tests/Fixer/Phpdoc/PhpdocAlignFixerTest.php | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/Fixer/Phpdoc/PhpdocAlignFixer.php b/src/Fixer/Phpdoc/PhpdocAlignFixer.php index 986706ea292..c37dc0dbfd2 100644 --- a/src/Fixer/Phpdoc/PhpdocAlignFixer.php +++ b/src/Fixer/Phpdoc/PhpdocAlignFixer.php @@ -64,6 +64,8 @@ final class PhpdocAlignFixer extends AbstractFixer implements ConfigurableFixerI private const TAGS_WITH_NAME = [ 'param', 'property', + 'property-read', + 'property-write', ]; private const TAGS_WITH_METHOD_SIGNATURE = [ diff --git a/tests/Fixer/Phpdoc/PhpdocAlignFixerTest.php b/tests/Fixer/Phpdoc/PhpdocAlignFixerTest.php index 44adf788872..4a5041633a0 100644 --- a/tests/Fixer/Phpdoc/PhpdocAlignFixerTest.php +++ b/tests/Fixer/Phpdoc/PhpdocAlignFixerTest.php @@ -1227,17 +1227,17 @@ public function sample2($a, $b, ...$c) ['tags' => ['property', 'property-read', 'property-write']], '