Skip to content

Commit b4d751c

Browse files
committed
Update changelog
1 parent 8096c4d commit b4d751c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ All Notable changes to `Csv` will be documented in this file
77
### Added
88

99
- `Reader::fetchPairs`
10-
- `QueryFilter::setReturnType` to enable modifying some extract method return type
10+
- `Reader::fetchPairsWithoutDuplicates`
1111

1212
### Deprecated
1313

1414
- None
1515

1616
### Fixed
1717

18+
- `Reader::fetchColumn` and `Reader::fetchAssoc` now returns `Iterator`
1819
- `Reader::fetchAssoc` callable argument expects an indexed row using the submitted keys as its first argument
1920
- `Reader::fetchColumn` callable argument expects the selected column value as its first argument
2021

src/Reader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function fetchPairs($offsetIndex = 0, $valueIndex = 1, callable $callable
174174
{
175175
$offsetIndex = $this->validateInteger($offsetIndex, 0, 'the offset column index must be a positive integer or 0');
176176
$valueIndex = $this->validateInteger($valueIndex, 0, 'the value column index must be a positive integer or 0');
177-
$filterPairs = function ($row) use ($offsetIndex, $valueIndex) {
177+
$filterPairs = function ($row) use ($offsetIndex) {
178178
return isset($row[$offsetIndex]);
179179
};
180180
$selectPairs = function ($row) use ($offsetIndex, $valueIndex) {

0 commit comments

Comments
 (0)