mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-01 20:19:42 +08:00
Replace int|string key types with array-key in PHPStan/Psalm annotations (#20443)
This commit is contained in:
@ -161,8 +161,8 @@ class Model extends Component implements StaticInstanceInterface, IteratorAggreg
|
||||
* @return array validation rules
|
||||
* @see scenarios()
|
||||
*
|
||||
* @phpstan-return array<int|string, mixed>[]
|
||||
* @psalm-return array<int|string, mixed>[]
|
||||
* @phpstan-return array<array-key, mixed>[]
|
||||
* @psalm-return array<array-key, mixed>[]
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user