Fix #20524: Fix PHPStan/Psalm annotations in Yii::createObject

This commit is contained in:
Maksim Spirkov
2025-09-15 21:37:32 +04:00
committed by GitHub
parent 398dea3b6e
commit 68600dbcba
2 changed files with 3 additions and 2 deletions

View File

@ -343,8 +343,8 @@ class BaseYii
* @see \yii\di\Container
*
* @template T
* @phpstan-param class-string<T>|array{class: class-string<T>, ...}|callable(): T $type
* @psalm-param class-string<T>|array{class: class-string<T>, ...}|callable(): T $type
* @phpstan-param class-string<T>|array{class?: class-string<T>, __class?: class-string<T>, ...}|callable(): T $type
* @psalm-param class-string<T>|array{class?: class-string<T>, __class?: class-string<T>, ...}|callable(): T $type
* @phpstan-return T
* @psalm-return T
*/

View File

@ -28,6 +28,7 @@ Yii Framework 2 Change Log
- Enh #20514: Add `@property` annotations for `yii\console\Controller` (max-s-lab)
- Bug #20515: Fix `@param` annotations in `BetweenColumnsCondition`, `InCondition` and `LikeCondition` (max-s-lab)
- Bug #20516: Fix `@template` annotations in `ActiveRecord` (max-s-lab)
- Bug #20524: Fix PHPStan/Psalm annotations in `Yii::createObject` (max-s-lab)
2.0.53 June 27, 2025