We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3978aa2 commit 4bc9e43Copy full SHA for 4bc9e43
src/reflection/ComponentPropertyReflection.php
@@ -8,6 +8,8 @@
8
use PHPStan\TrinaryLogic;
9
use PHPStan\Type\Type;
10
11
+use function sprintf;
12
+
13
/**
14
* Property reflection wrapper for Yii application components in PHPStan analysis.
15
*
@@ -110,11 +112,7 @@ public function getDocComment(): string
110
112
{
111
113
$componentTypeName = $this->type->describe(\PHPStan\Type\VerbosityLevel::typeOnly());
114
- return <<<PHPDOC
- /**
115
- * @var {$componentTypeName}
116
- */
117
- PHPDOC;
+ return sprintf("/**\n * @var %s\n */", $componentTypeName);
118
}
119
120
0 commit comments