|
1 | 1 | Yii Framework 2 Change Log |
2 | 2 | ========================== |
3 | 3 |
|
4 | | -2.0.54 November 23, 2025 |
| 4 | +2.0.54 under development |
5 | 5 | ------------------------ |
6 | 6 |
|
7 | | -- Bug #19506: Fix `@property` annotations in `yii\console\widgets\Table`, `yii\di\Container` and `yii\web\Session` (mspirkov) |
8 | | -- Bug #19655: Fix `LinkPager::getPageRange` when `maxButtons` is 2 (mspirkov) |
| 7 | +- Bug #20542: Fix `Formatter` working with more complex ICU unit data structure (OndrejVasicek) |
| 8 | +- Bug #20483: Fix `CompositeAuth` making bad assumptions on `AuthInterface` implementations (sammousa) |
9 | 9 | - Bug #20432: Fix PHPStan/Psalm annotations for `ActiveQuery::asArray` (mspirkov) |
10 | 10 | - Bug #20437: Fix PHPStan/Psalm annotations for `BaseArrayHelper::merge` (mspirkov) |
11 | | -- Bug #20447: Fix behavior for `yii\web\Controller::bindActionParams` around `mixed` type (chriscpty) |
| 11 | +- Enh #20434: Add PHPStan/Psalm annotations for `hasMany` and `hasOne` methods (mspirkov) |
| 12 | +- Enh #20433: Add PHPStan/Psalm annotations for some controllers methods: `beforeAction`, `afterAction` and `bindActionParams` (mspirkov) |
| 13 | +- Enh #20442: Add PHPStan/Psalm annotations for `yii\base\Controller` methods: `runAction`, `run`, `render`, `renderPartial` and `renderFile` (mspirkov) |
12 | 14 | - Bug #20453: Fix PHPStan/Psalm types in `yii\web\View` (mspirkov) |
| 15 | +- Enh #20461: Add PHPStan/Psalm annotations for `yii\filters\auth\AuthInterface` (mspirkov) |
13 | 16 | - Bug #20459: Fix return type in `RequestParserInterface::parse` (mspirkov) |
14 | 17 | - Bug #20475: Fix `Formatter` class `asScientific()` method for PHP `8.5` `sprintf` precision change (`6` to `0`) (terabytesoftw) |
15 | | -- Bug #20479: Fix issue with MSSQL related to char and nchar (craiglondon) |
16 | 18 | - Bug #20482: Fix deprecation of `ReflectionMethod::setAccessible()` in PHP `8.5` (terabytesoftw) |
17 | | -- Bug #20483: Fix `CompositeAuth` making bad assumptions on `AuthInterface` implementations (sammousa) |
18 | | -- Bug #20485: Fix error `Cannot unset string offsets` in `yii\di\Instance:ensure(['__class' => ...], 'some\class\name')` (mspirkov) |
19 | | -- Bug #20489: Replace deprecated `strftime` with `date` in `YiiRequirementChecker` (mspirkov) |
| 19 | +- Enh #20480: Add PHPStan/Psalm annotations for `ServiceLocator::get` (mspirkov) |
| 20 | +- Bug #20447: Fix behavior for `yii\web\Controller::bindActionParams` around `mixed` type (chriscpty) |
| 21 | +- Bug #20479: Fix issue with MSSQL related to char and nchar (craiglondon) |
20 | 22 | - Bug #20492: Fix deprecation of `finfo_close()` in PHP `8.5` by conditionally closing the resource (terabytesoftw) |
21 | | -- Bug #20494: Fix `PHPdoc`, add `PHPStan/Psalm` annotations for `authMethods` property in `CompositeAuth` class (terabytesoftw) |
22 | 23 | - Bug #20495: Fix behavior when resetting sequence in `QueryBuilder` for `MSSQL` (achretien) |
| 24 | +- Bug #20489: Replace deprecated `strftime` with `date` in `YiiRequirementChecker` (mspirkov) |
| 25 | +- Bug #20494: Fix `PHPdoc`, add `PHPStan/Psalm` annotations for `authMethods` property in `CompositeAuth` class (terabytesoftw) |
| 26 | +- Bug #20485: Fix error `Cannot unset string offsets` in `yii\di\Instance:ensure(['__class' => ...], 'some\class\name')` (mspirkov) |
| 27 | +- Enh #20047: Throw exception when fixture not found rather than ignoring (borgou) |
| 28 | +- Enh #20505: `ArrayDataProvider` key handling with flexible path support (fetus-hina) |
23 | 29 | - Bug #20508: Fix PHPDoc, add PHPStan/Psalm annotations for `yii\web\CookieCollection::getIterator`. Add missing `@property` annotation in `yii\base\Model` (mspirkov) |
24 | 30 | - Bug #20513: Fix code examples in PHPDoc (mspirkov) |
| 31 | +- Enh #20514: Add `@property` annotations for `yii\console\Controller` (mspirkov) |
25 | 32 | - Bug #20515: Fix `@param` annotations in `BetweenColumnsCondition`, `InCondition` and `LikeCondition` (mspirkov) |
26 | 33 | - Bug #20516: Fix `@template` annotations in `ActiveRecord` (mspirkov) |
| 34 | +- Bug #19506: Fix `@property` annotations in `yii\console\widgets\Table`, `yii\di\Container` and `yii\web\Session` (mspirkov) |
| 35 | +- Enh #20525, #20529, #20629: Add `@template` annotations for all actions (mspirkov) |
27 | 36 | - Bug #20524: Fix PHPStan/Psalm annotations in `Yii::createObject` (mspirkov) |
28 | 37 | - Bug #20530: Fix notice "Object of class DateTimeImmutable could not be converted to int" in `CookieCollection::has` (mspirkov) |
29 | 38 | - Bug #20532: Add missing `return` statements in `CacheController::actionFlushSchema`, `FixtureController::actionUnload`, `HelpController::actionIndex` and `ServeController::actionIndex` (mspirkov) |
| 39 | +- Bug #19655: Fix `LinkPager::getPageRange` when `maxButtons` is 2 (mspirkov) |
| 40 | +- Enh #20539: Update minimum PHP version requirement from `7.3` to `7.4` (terabytesoftw) |
30 | 41 | - Bug #20541: Remove deprecated caching components: `XCache` and `ZendDataCache`, and update related tests and documentation (terabytesoftw) |
31 | | -- Bug #20542: Fix `Formatter` working with more complex ICU unit data structure (OndrejVasicek) |
32 | 42 | - Bug #20548: Fix PHP `8.5` `null` array offset deprecation warnings (terabytesoftw) |
33 | | -- Bug #20569: Fix `@param` annotation for `$default` in `HeaderCollection::get` (mspirkov) |
| 43 | +- New #19526: Add the `convertIniSizeToBytes` method to `BaseStringHelper` (mspirkov) |
34 | 44 | - Bug #20570: Fix `@var` annotation for `UrlManager::$cache` (mspirkov) |
35 | 45 | - Bug #20571: Fix `@var` annotation for `yii\web\Response::$stream` (mspirkov) |
| 46 | +- Bug #20569: Fix `@param` annotation for `$default` in `HeaderCollection::get` (mspirkov) |
36 | 47 | - Bug #20576: Fix `@var` annotation for `StringValidator::$length` (mspirkov) |
| 48 | +- Enh #20579: Add PHPStan/Psalm annotations for `HeaderCollection::get` (mspirkov) |
37 | 49 | - Bug #20583: Fix return value in `Request::getServerPort` (mspirkov) |
38 | 50 | - Bug #20585: Fix `@return` annotation for `CompositeUrlRule::createRules()` (mspirkov) |
39 | 51 | - Bug #20587: Fix `@var` annotation for `yii\rbac\Item::$ruleName` (mspirkov) |
40 | 52 | - Bug #20589: Fix `@var` annotations for `yii\rbac\DbManager` properties (mspirkov) |
| 53 | +- Bug #20599: Fix `@return` annotation for `ConditionInterface::fromArrayDefinition()` (mspirkov) |
| 54 | +- Enh #20591: Add PHPStan/Psalm annotations for `yii\rbac\BaseManager::getItems()` (mspirkov) |
41 | 55 | - Bug #20594: Fix `@return` annotation for `Instance::get()` (mspirkov) |
42 | 56 | - Bug #20595: Fix `@return` annotation for `BaseHtml::getAttributeValue()` (mspirkov) |
43 | | -- Bug #20599: Fix `@return` annotation for `ConditionInterface::fromArrayDefinition()` (mspirkov) |
44 | | -- Bug #20600: Fix `@var` annotation for `yii\test\FileFixtureTrait::$dataFile` (mspirkov) |
45 | | -- Bug #20604: Fix `@var` annotation for `yii\db\Command::$pdoStatement` (mspirkov) |
46 | 57 | - Bug #20605: Fix return value in `SerialColumn::renderDataCellContent()` (mspirkov) |
| 58 | +- Bug #20604: Fix `@var` annotation for `yii\db\Command::$pdoStatement` (mspirkov) |
| 59 | +- Bug #20600: Fix `@var` annotation for `yii\test\FileFixtureTrait::$dataFile` (mspirkov) |
| 60 | +- Enh #20607: Add PHPStan/Psalm annotations for DB schemas (mspirkov) |
47 | 61 | - Bug #20608: Fix `@return` annotations for `yii\rest\Serializer` methods (mspirkov) |
48 | 62 | - Bug #20610: Fix `@var` annotation for `ActiveQueryTrait::$with` (mspirkov) |
49 | 63 | - Bug #20611: Fix `@return` annotations for `yii\i18n\GettextMoFile` methods (mspirkov) |
50 | | -- Bug #20617: Fix `@return` annotation for `DataColumn::getDataCellValue()` (mspirkov) |
51 | | -- Bug #20618: Fix `@var` annotation for `yii\web\Response::$acceptMimeType` (mspirkov) |
52 | | -- Bug #20619: Fix `@return` annotation for `yii\db\Query::prepare()` (mspirkov) |
53 | 64 | - Bug #20620: Fix `@var` annotation for `RateLimiter::$user` (mspirkov) |
| 65 | +- Bug #20619: Fix `@return` annotation for `yii\db\Query::prepare()` (mspirkov) |
| 66 | +- Bug #20618: Fix `@var` annotation for `yii\web\Response::$acceptMimeType` (mspirkov) |
| 67 | +- Bug #20617: Fix `@return` annotation for `DataColumn::getDataCellValue()` (mspirkov) |
54 | 68 | - Bug #20628: Fix `@return` annotations for `lastInsertId` methods in `yii\db\mssql` namespace (mspirkov) |
55 | 69 | - Bug #20630: Fix `@var` annotations for `yii\web\CompositeUrlRule::$rules` and `yii\web\GroupUrlRule::$rules` (mspirkov) |
56 | 70 | - Bug #20634: Fix PHPDoc annotations in `yii\db` namespace. Add PHPStan/Psalm annotations for `yii\db\SqlTokenizer::startsWithAnyLongest()` (mspirkov) |
57 | 71 | - Bug #20636: Fix `@param` annotations for `$message` in logging methods (mspirkov) |
58 | 72 | - Bug #20637: Fix PHPDoc annotations in `ActiveRelationTrait`. Add PHPStan/Psalm annotations for `$modelClass` in `ActiveQuery`, `ActiveQueryTrait` and `ActiveRelationTrait` (mspirkov) |
59 | 73 | - Bug #20639: Add missing generics in `yii\web` namespace (mspirkov) |
60 | | -- Bug #20640: Fix `@param` annotation for `$block` in `yii\console\Markdown::renderParagraph()` (mspirkov) |
61 | 74 | - Bug #20645: Add missing generics in `yii\helpers` and `yii\test` namespaces. Fix PHPDoc annotations in `ArrayAccessTrait` (mspirkov) |
62 | | -- Bug #20651: Add missing generics in `yii\filters` namespace (mspirkov) |
| 75 | +- Bug #20640: Fix `@param` annotation for `$block` in `yii\console\Markdown::renderParagraph()` (mspirkov) |
| 76 | +- Enh #20642: Pass `$model` and `$attribute` in Compare Validator's compareValue property closure (samuelrajan747) |
| 77 | +- Enh #20650: Add PHPStan/Psalm annotations for `yii\di\Container` (mspirkov) |
63 | 78 | - Bug #20654: Add missing generics in `yii\db` namespace. Fix PHPDoc annotations in `yii\db\ArrayExpression` (mspirkov) |
64 | | -- Bug #20658: Add missing generics in `yii\console`, `yii\captcha`, `yii\caching` and `yii\behaviors` namespaces (mspirkov) |
| 79 | +- Bug #20651: Add missing generics in `yii\filters` namespace (mspirkov) |
65 | 80 | - Bug #20659: Fix PHP `8.5` `null` array offset deprecation warnings in `MariaDB` driver (terabytesoftw) |
66 | 81 | - Bug #20665: Fix PHP `8.5` `null` array offset deprecation warnings in `yii\build\controllers\ReleaseController` class (terabytesoftw) |
| 82 | +- Bug #20658: Add missing generics in `yii\console`, `yii\captcha`, `yii\caching` and `yii\behaviors` namespaces (mspirkov) |
67 | 83 | - Bug #20666: Add missing generics in `yii\base`, `yii\console`, `yii\filters` and `yii\web` namespaces (mspirkov) |
68 | | -- Bug #20671: Fix PHPDoc annotations in `yii\base`, `yii\console`, `yii\web` and `yii\widgets` namespaces (mspirkov) |
69 | 84 | - Bug #20673: Sanitize `null` bytes before `quoteValue()` on PHP 8.5+ in SQLite (terabytesoftw) |
| 85 | +- Bug #20671: Fix PHPDoc annotations in `yii\base`, `yii\console`, `yii\web` and `yii\widgets` namespaces (mspirkov) |
70 | 86 | - Bug #20675: Add generics for all controllers (mspirkov) |
71 | | -- Enh #20047: Throw exception when fixture not found rather than ignoring (borgou) |
72 | | -- Enh #20433: Add PHPStan/Psalm annotations for some controllers methods: `beforeAction`, `afterAction` and `bindActionParams` (mspirkov) |
73 | | -- Enh #20434: Add PHPStan/Psalm annotations for `hasMany` and `hasOne` methods (mspirkov) |
74 | | -- Enh #20442: Add PHPStan/Psalm annotations for `yii\base\Controller` methods: `runAction`, `run`, `render`, `renderPartial` and `renderFile` (mspirkov) |
75 | | -- Enh #20461: Add PHPStan/Psalm annotations for `yii\filters\auth\AuthInterface` (mspirkov) |
76 | | -- Enh #20480: Add PHPStan/Psalm annotations for `ServiceLocator::get` (mspirkov) |
77 | | -- Enh #20505: `ArrayDataProvider` key handling with flexible path support (fetus-hina) |
78 | | -- Enh #20514: Add `@property` annotations for `yii\console\Controller` (mspirkov) |
79 | | -- Enh #20525, #20529, #20629: Add `@template` annotations for all actions (mspirkov) |
80 | | -- Enh #20539: Update minimum PHP version requirement from `7.3` to `7.4` (terabytesoftw) |
81 | | -- Enh #20579: Add PHPStan/Psalm annotations for `HeaderCollection::get` (mspirkov) |
82 | | -- Enh #20591: Add PHPStan/Psalm annotations for `yii\rbac\BaseManager::getItems()` (mspirkov) |
83 | | -- Enh #20607: Add PHPStan/Psalm annotations for DB schemas (mspirkov) |
84 | | -- Enh #20642: Pass `$model` and `$attribute` in Compare Validator's compareValue property closure (samuelrajan747) |
85 | | -- Enh #20650: Add PHPStan/Psalm annotations for `yii\di\Container` (mspirkov) |
86 | | -- New #19526: Add the `convertIniSizeToBytes` method to `BaseStringHelper` (mspirkov) |
87 | 87 |
|
88 | 88 |
|
89 | 89 | 2.0.53 June 27, 2025 |
|
0 commit comments