1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

feature: narrow key template for ArrayObject to array-key

This aligns behavior with PHPStan: ab154e1da5/stubs/ArrayObject.stub (L38)

Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
This commit is contained in:
Maximilian Bösing 2023-09-10 15:54:08 +02:00
parent f782767438
commit e77a4bcbbe
No known key found for this signature in database
GPG Key ID: 9A8988C93CEC81A3

View File

@ -125,7 +125,7 @@ interface ArrayAccess {
* This class allows objects to work as arrays.
* @link http://php.net/manual/en/class.arrayobject.php
*
* @template TKey
* @template TKey of array-key
* @template TValue
* @template-implements IteratorAggregate<TKey, TValue>
* @template-implements ArrayAccess<TKey, TValue>