Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Yii Framework 2 gii extension Change Log
- Enh #561: Applying Yii2 coding standards (@s1lver)
- Enh #561: Raise min version to PHP 7.4 (@s1lver)
- Bug #549: Fix decimal and money column type generation in model generator (@taobig)
- Bug #572: Fix union types in PHPDoc annotations (mspirkov)

2.2.7 February 13, 2025
-----------------------
Expand Down
10 changes: 8 additions & 2 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ parameters:
path: src/Module.php

-
message: '#^Property yii\\gii\\Module\:\:\$generators \(array\<yii\\gii\\Generator\>\) does not accept array\<object\>\.$#'
identifier: assign.propertyType
message: '#^Property yii\\gii\\Module\:\:\$generators type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Module.php

Expand Down Expand Up @@ -1518,6 +1518,12 @@ parameters:
count: 1
path: tests/generators/ModelGeneratorMock.php

-
message: '#^Method yiiunit\\gii\\generators\\ModelGeneratorMock\:\:publicGenerateProperties\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: tests/generators/ModelGeneratorMock.php

-
message: '#^Access to constant TYPE_CLIENT on an unknown class TestEnumModel\.$#'
identifier: class.notFound
Expand Down
2 changes: 1 addition & 1 deletion src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Module extends \yii\base\Module implements BootstrapInterface
*/
public $allowedIPs = ['127.0.0.1', '::1'];
/**
* @var array|Generator[] a list of generator configurations or instances. The array keys
* @var array a list of generator configurations or instances. The array keys
* are the generator IDs (e.g. "crud"), and the array elements are the corresponding generator
* configurations or the instances.
*
Expand Down