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']], '