Skip to content

Commit

Permalink
Merge pull request #10190 from boesing/feature/array-object-array-key
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan committed Sep 10, 2023
2 parents 5b54bd8 + 7f8ec79 commit ea1664f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion stubs/CoreGenericClasses.phpstub
Expand Up @@ -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>
Expand Down
1 change: 0 additions & 1 deletion tests/ArrayAssignmentTest.php
Expand Up @@ -1297,7 +1297,6 @@ function foo(ArrayObject $a) : array {
/**
* @psalm-suppress MixedAssignment
* @psalm-suppress MixedArrayOffset
*/
foreach ($a as $k => $v) {
$arr[$k] = $v;
Expand Down
6 changes: 3 additions & 3 deletions tests/ClassTest.php
Expand Up @@ -640,7 +640,7 @@ function intersect(A $a) {
'code' => '<?php
/**
* @template TTKey
* @template TTKey of array-key
* @template TTValue
*
* @extends ArrayObject<TTKey, TTValue>
Expand Down Expand Up @@ -675,7 +675,7 @@ class b extends a {
'preventDoubleStaticResolution2' => [
'code' => '<?php
/**
* @template TTKey
* @template TTKey of array-key
* @template TTValue
*
* @extends ArrayObject<TTKey, TTValue>
Expand Down Expand Up @@ -712,7 +712,7 @@ public function ret(): iter {
'preventDoubleStaticResolution3' => [
'code' => '<?php
/**
* @template TTKey
* @template TTKey of array-key
* @template TTValue
*
* @extends ArrayObject<TTKey, TTValue>
Expand Down
2 changes: 1 addition & 1 deletion tests/Template/ClassTemplateExtendsTest.php
Expand Up @@ -1390,7 +1390,7 @@ class A {}',
'extendArrayObjectWithTemplateParams' => [
'code' => '<?php
/**
* @template TKey
* @template TKey of array-key
* @template TValue
* @template-extends \ArrayObject<TKey,TValue>
*/
Expand Down

0 comments on commit ea1664f

Please sign in to comment.