diff --git a/rules/Php80/Rector/Class_/AttributeValueResolver.php b/rules/Php80/Rector/Class_/AttributeValueResolver.php index 66cc28b80a..5076d7c3fe 100644 --- a/rules/Php80/Rector/Class_/AttributeValueResolver.php +++ b/rules/Php80/Rector/Class_/AttributeValueResolver.php @@ -51,7 +51,7 @@ public function resolve( if (Strings::match($docValueLine, self::END_SLASH_REGEX) === null) { if ($hasPreviousEndSlash === false && $key > 0) { - if ($key === 1) { + if ($docComment === '') { $docComment .= $docValueLine; } else { $docComment .= "\n * " . $docValueLine;