Fix #20453: Fix PHPStan/Psalm types in yii\web\View

This commit is contained in:
Максим Спирков
2025-07-15 12:54:19 +05:00
committed by GitHub
parent 58de63993f
commit 6ee5d952ae
2 changed files with 9 additions and 4 deletions

View File

@ -9,6 +9,7 @@ Yii Framework 2 Change Log
- Enh #20434: Added PHPStan/Psalm annotations for `hasMany` and `hasOne` methods (max-s-lab)
- Enh #20433: Added PHPStan/Psalm annotations for some controllers methods: `beforeAction`, `afterAction` and `bindActionParams` (max-s-lab)
- Enh #20442: Add PHPStan/Psalm annotations for `yii\base\Controller` methods: `runAction`, `run`, `render`, `renderPartial` and `renderFile` (max-s-lab)
- Bug #20453: Fix PHPStan/Psalm types in `yii\web\View` (max-s-lab)
2.0.53 June 27, 2025

View File

@ -45,23 +45,27 @@ use yii\helpers\Url;
* @phpstan-type RegisterJsFileOptions array{
* depends?: class-string[],
* position?: int,
* appendTimestamp?: boolean
* appendTimestamp?: bool,
* ...
* }
*
* @psalm-type RegisterJsFileOptions = array{
* depends?: class-string[],
* position?: int,
* appendTimestamp?: boolean
* appendTimestamp?: bool,
* ...
* }
*
* @phpstan-type RegisterCssFileOptions array{
* depends?: class-string[],
* appendTimestamp?: boolean
* appendTimestamp?: bool,
* ...
* }
*
* @psalm-type RegisterCssFileOptions = array{
* depends?: class-string[],
* appendTimestamp?: boolean
* appendTimestamp?: bool,
* ...
* }
*/
class View extends \yii\base\View