Skip to content

Commit 82927ed

Browse files
authored
Merge pull request #100 from ZebulanStanphill/fix/collection-phpdoc-extends
Fix PHPDoc `@extends` for `Collection` interface.
2 parents 43d2df3 + b886aa4 commit 82927ed

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## Unreleased
6+
### Fixed
7+
- `Collection` PHPDoc now correctly states that it extends `IteratorAggregate`, rather than just `Traversable`.
8+
9+
## [1.4.1] - 2022-03-09
10+
11+
## [1.4.0] - 2021-11-17
12+
513
## [1.3.0] - 2020-10-13
614
### Changed
715
- Implement ArrayAccess consistently

src/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
* @template-covariant TKey
1212
* @template-covariant TValue
13-
* @extends Traversable<TKey, TValue>
13+
* @extends \IteratorAggregate<TKey, TValue>
1414
*/
1515
interface Collection extends \IteratorAggregate, \Countable, \JsonSerializable
1616
{

0 commit comments

Comments
 (0)