Fix #20516: Fix @template annotations in ActiveRecord

This commit is contained in:
Maksim Spirkov
2025-09-08 15:08:02 +05:00
committed by GitHub
parent 61f1bd7af9
commit 04d0c0dd5f
2 changed files with 3 additions and 2 deletions

View File

@ -26,6 +26,7 @@ Yii Framework 2 Change Log
- Bug #20508: Fix PHPDoc, add PHPStan/Psalm annotations for `yii\web\CookieCollection::getIterator`. Add missing `@property` annotation in `yii\base\Model` (max-s-lab) - Bug #20508: Fix PHPDoc, add PHPStan/Psalm annotations for `yii\web\CookieCollection::getIterator`. Add missing `@property` annotation in `yii\base\Model` (max-s-lab)
- Bug #20513: Fix code examples in PHPDoc (max-s-lab) - Bug #20513: Fix code examples in PHPDoc (max-s-lab)
- Enh #20514: Add `@property` annotations for `yii\console\Controller` (max-s-lab) - Enh #20514: Add `@property` annotations for `yii\console\Controller` (max-s-lab)
- Bug #20516: Fix `@template` annotations in `ActiveRecord` (max-s-lab)
2.0.53 June 27, 2025 2.0.53 June 27, 2025

View File

@ -597,7 +597,7 @@ class ActiveRecord extends BaseActiveRecord
* *
* @return ActiveQuery * @return ActiveQuery
* *
* @template T * @template T of self
* *
* @phpstan-param class-string<T> $class * @phpstan-param class-string<T> $class
* @psalm-param class-string<T> $class * @psalm-param class-string<T> $class
@ -615,7 +615,7 @@ class ActiveRecord extends BaseActiveRecord
* *
* @return ActiveQuery * @return ActiveQuery
* *
* @template T * @template T of self
* *
* @phpstan-param class-string<T> $class * @phpstan-param class-string<T> $class
* @psalm-param class-string<T> $class * @psalm-param class-string<T> $class