Skip to content

Commit 3af6fcf

Browse files
committed
Use @Property instead of @var for better autocomplete
1 parent 01df96d commit 3af6fcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tool/Generator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ private function formatDescription(string $description) : string
494494
*
495495
* @param string $name of the class, no namespace
496496
* @param array $properties from YAML file
497-
* @param array $docBlocks @var docblocks to output
497+
* @param array $docBlocks @property docblocks to output
498498
*/
499499
private function generateFromTemplate(string $name, array $properties, array $docBlocks) : void
500500
{
@@ -514,7 +514,7 @@ private function generateFromTemplate(string $name, array $properties, array $do
514514
foreach ($docBlocks as $docBlock)
515515
{
516516
$docBlock = \trim($docBlock);
517-
$template .= " * @var {$docBlock}\n";
517+
$template .= " * @property {$docBlock}\n";
518518
}
519519

520520
$template .= " */

0 commit comments

Comments
 (0)