mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Merge pull request #10190 from boesing/feature/array-object-array-key
This commit is contained in:
commit
ea1664f30b
@ -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>
|
||||
|
@ -1297,7 +1297,6 @@ class ArrayAssignmentTest extends TestCase
|
||||
|
||||
/**
|
||||
* @psalm-suppress MixedAssignment
|
||||
* @psalm-suppress MixedArrayOffset
|
||||
*/
|
||||
foreach ($a as $k => $v) {
|
||||
$arr[$k] = $v;
|
||||
|
@ -640,7 +640,7 @@ class ClassTest extends TestCase
|
||||
'code' => '<?php
|
||||
|
||||
/**
|
||||
* @template TTKey
|
||||
* @template TTKey of array-key
|
||||
* @template TTValue
|
||||
*
|
||||
* @extends ArrayObject<TTKey, TTValue>
|
||||
@ -675,7 +675,7 @@ class ClassTest extends TestCase
|
||||
'preventDoubleStaticResolution2' => [
|
||||
'code' => '<?php
|
||||
/**
|
||||
* @template TTKey
|
||||
* @template TTKey of array-key
|
||||
* @template TTValue
|
||||
*
|
||||
* @extends ArrayObject<TTKey, TTValue>
|
||||
@ -712,7 +712,7 @@ class ClassTest extends TestCase
|
||||
'preventDoubleStaticResolution3' => [
|
||||
'code' => '<?php
|
||||
/**
|
||||
* @template TTKey
|
||||
* @template TTKey of array-key
|
||||
* @template TTValue
|
||||
*
|
||||
* @extends ArrayObject<TTKey, TTValue>
|
||||
|
@ -1390,7 +1390,7 @@ class ClassTemplateExtendsTest extends TestCase
|
||||
'extendArrayObjectWithTemplateParams' => [
|
||||
'code' => '<?php
|
||||
/**
|
||||
* @template TKey
|
||||
* @template TKey of array-key
|
||||
* @template TValue
|
||||
* @template-extends \ArrayObject<TKey,TValue>
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user