Skip to content

Commit

Permalink
fix invalid named arguments being passed
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Jan 3, 2024
1 parent d2ff7ba commit 6c7f460
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Csv/League.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ protected function getWriter(iterable $data): Writer
public function writeString(iterable $data, ...$opts): string
{
$this->configure(...$opts);
return $this->getWriter($data, ...$opts)->toString();
return $this->getWriter($data)->toString();
}

public function writeFile(iterable $data, string $filename, ...$opts): bool
Expand All @@ -124,7 +124,7 @@ public function writeFile(iterable $data, string $filename, ...$opts): bool
public function output(iterable $data, string $filename, ...$opts): void
{
$this->configure(...$opts);
$this->getWriter($data, ...$opts)->output($filename);
$this->getWriter($data)->output($filename);
// ignore returned bytes
}

Expand Down

0 comments on commit 6c7f460

Please sign in to comment.