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:
parent
f782767438
commit
e77a4bcbbe
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user