Skip to content

Commit

Permalink
update package
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed May 5, 2015
1 parent f17b721 commit 3428566
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Reader.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public function fetchColumn($column_index = 0, callable $callable = null)
*
* @param array|int $offset_or_keys the name for each key member OR the row Index to be
* used as the associated named keys
*
* @param callable $callable a callable function
*
* @throws \InvalidArgumentException If the submitted keys are invalid
Expand Down Expand Up @@ -247,7 +248,7 @@ protected function getRow($offset)
*
* @param array $keys
*
* @return boolean
* @throws \InvalidArgumentException If the submitted array fails the assertion
*/
protected function assertValidAssocKeys(array $keys)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ public function insertOne($row)
*/
protected function getFputcsvParameters(array $fields)
{
$parameters = [$this->delimiter, $this->enclosure];
$parameters = [$fields, $this->delimiter, $this->enclosure];
if (4 == static::$fputcsv_param_count) {
$parameters[] = $this->escape;
}

return array_merge([$fields], $parameters);
return $parameters;
}

/**
Expand Down

0 comments on commit 3428566

Please sign in to comment.