Skip to content

Commit 4bc9e43

Browse files
committed
Apply fixed coderabbitai nitpick comments.
1 parent 3978aa2 commit 4bc9e43

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/reflection/ComponentPropertyReflection.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
use PHPStan\TrinaryLogic;
99
use PHPStan\Type\Type;
1010

11+
use function sprintf;
12+
1113
/**
1214
* Property reflection wrapper for Yii application components in PHPStan analysis.
1315
*
@@ -110,11 +112,7 @@ public function getDocComment(): string
110112
{
111113
$componentTypeName = $this->type->describe(\PHPStan\Type\VerbosityLevel::typeOnly());
112114

113-
return <<<PHPDOC
114-
/**
115-
* @var {$componentTypeName}
116-
*/
117-
PHPDOC;
115+
return sprintf("/**\n * @var %s\n */", $componentTypeName);
118116
}
119117

120118
/**

0 commit comments

Comments
 (0)