Skip to content

Commit

Permalink
[Php80] Use more proper check for doc comment multi lines on Attribut…
Browse files Browse the repository at this point in the history
…eValueResolver (#6587)
  • Loading branch information
samsonasik authored Dec 14, 2024
1 parent ccb2fa2 commit 171afe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/Php80/Rector/Class_/AttributeValueResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 171afe1

Please sign in to comment.