mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 21:41:19 +08:00
Replace int|string key types with array-key in PHPStan/Psalm annotations (#20443)
This commit is contained in:
@ -462,8 +462,8 @@ class Component extends BaseObject
|
|||||||
*
|
*
|
||||||
* @return array the behavior configurations.
|
* @return array the behavior configurations.
|
||||||
*
|
*
|
||||||
* @phpstan-return array<int|string, class-string|array{class: class-string, ...}>
|
* @phpstan-return array<array-key, class-string|array{class: class-string, ...}>
|
||||||
* @psalm-return array<int|string, class-string|array{class: class-string, ...}>
|
* @psalm-return array<array-key, class-string|array{class: class-string, ...}>
|
||||||
*/
|
*/
|
||||||
public function behaviors()
|
public function behaviors()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -161,8 +161,8 @@ class Model extends Component implements StaticInstanceInterface, IteratorAggreg
|
|||||||
* @return array validation rules
|
* @return array validation rules
|
||||||
* @see scenarios()
|
* @see scenarios()
|
||||||
*
|
*
|
||||||
* @phpstan-return array<int|string, mixed>[]
|
* @phpstan-return array<array-key, mixed>[]
|
||||||
* @psalm-return array<int|string, mixed>[]
|
* @psalm-return array<array-key, mixed>[]
|
||||||
*/
|
*/
|
||||||
public function rules()
|
public function rules()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -102,8 +102,8 @@ class AssetBundle extends BaseObject
|
|||||||
*
|
*
|
||||||
* Note that only a forward slash "/" should be used as directory separator.
|
* Note that only a forward slash "/" should be used as directory separator.
|
||||||
*
|
*
|
||||||
* @phpstan-var (string|array<int|string, mixed>)[]
|
* @phpstan-var (string|array<array-key, mixed>)[]
|
||||||
* @psalm-var (string|array<int|string, mixed>)[]
|
* @psalm-var (string|array<array-key, mixed>)[]
|
||||||
*/
|
*/
|
||||||
public $js = [];
|
public $js = [];
|
||||||
/**
|
/**
|
||||||
@ -112,8 +112,8 @@ class AssetBundle extends BaseObject
|
|||||||
*
|
*
|
||||||
* Note that only a forward slash "/" should be used as directory separator.
|
* Note that only a forward slash "/" should be used as directory separator.
|
||||||
*
|
*
|
||||||
* @phpstan-var (string|array<int|string, mixed>)[]
|
* @phpstan-var (string|array<array-key, mixed>)[]
|
||||||
* @psalm-var (string|array<int|string, mixed>)[]
|
* @psalm-var (string|array<array-key, mixed>)[]
|
||||||
*/
|
*/
|
||||||
public $css = [];
|
public $css = [];
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user