Skip to content

Commit d645e82

Browse files
authored
Fix #573: Fix @property annotations in Generator, generators/model/Generator and generators/module/Generator
1 parent a1f3f43 commit d645e82

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Yii Framework 2 gii extension Change Log
99
- Enh #561: Applying Yii2 coding standards (@s1lver)
1010
- Enh #561: Raise min version to PHP 7.4 (@s1lver)
1111
- Bug #549: Fix decimal and money column type generation in model generator (@taobig)
12+
- Bug #573: Fix `@property` annotations in `Generator`, `generators/model/Generator` and `generators/module/Generator` (mspirkov)
1213
- Bug #572: Fix union types in PHPDoc annotations (mspirkov)
1314

1415
2.2.7 February 13, 2025

src/Generator.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@
2929
* - [[generate()]]: generates the code based on the current user input and the specified code template files.
3030
* This is the place where main code generation code resides.
3131
*
32-
* @property-read string $name The name of the generator.
33-
* @property-read string $description The detailed description of the generator.
34-
* @property-read string $stickyDataFile The file path that stores the sticky attribute values.
32+
* @property-read string $description
33+
* @property-read string $stickyDataFile
3534
* @property-read string $templatePath The root path of the template files that are currently being used.
3635
*
3736
* @author Qiang Xue <qiang.xue@gmail.com>

src/generators/model/Generator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
/**
2626
* This generator will generate one or multiple ActiveRecord classes for the specified database table.
2727
*
28+
* @property-read string $tablePrefix
29+
*
2830
* @author Qiang Xue <qiang.xue@gmail.com>
2931
* @since 2.0
3032
*/

src/generators/module/Generator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
1717
* This generator will generate the skeleton code needed by a module.
1818
*
1919
* @inheritdoc
20+
*
2021
* @property-read string $controllerNamespace The controller namespace of the module.
2122
* @property-read string $modulePath The directory that contains the module class.
23+
*
2224
* @author Qiang Xue <qiang.xue@gmail.com>
2325
* @since 2.0
2426
*/

0 commit comments

Comments
 (0)