Replace int|string key types with array-key in PHPStan/Psalm annotations (#20443)

This commit is contained in:
Максим Спирков
2025-07-11 20:17:54 +05:00
committed by GitHub
parent 699d7a7912
commit e3a2151efd
3 changed files with 8 additions and 8 deletions

View File

@ -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()
{