Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stubs/Drupal/Core/Field/FieldItemListInterface.stub
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use Drupal\Core\TypedData\ListInterface;

/**
* @template T of FieldItemInterface
* @extends ListInterface<T>
* @extends ListInterface<int, T>
* @property mixed $value
*/
interface FieldItemListInterface extends ListInterface {
Expand Down
5 changes: 3 additions & 2 deletions stubs/Drupal/Core/TypedData/ListInterface.stub
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
namespace Drupal\Core\TypedData;

/**
* @template TKey of int
* @template T of TypedDataInterface
* @extends TraversableTypedDataInterface<int, T>
* @extends \ArrayAccess<int,T>
* @extends TraversableTypedDataInterface<TKey, T>
* @extends \ArrayAccess<TKey,T>
*/
interface ListInterface extends TraversableTypedDataInterface, \ArrayAccess, \Countable {

Expand Down
2 changes: 1 addition & 1 deletion stubs/Drupal/Core/TypedData/Plugin/DataType/ItemList.stub
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use Drupal\Core\TypedData\TypedDataInterface;
/**
* @template T of TypedDataInterface
* @implements \IteratorAggregate<int, T>
* @implements ListInterface<T>
* @implements ListInterface<int, T>
*/
class ItemList extends TypedData implements \IteratorAggregate, ListInterface {

Expand Down
Loading