From 6c7f460d2ea4fa12ebe2ce3b111adb22f0020d58 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 3 Jan 2024 18:30:04 +0100 Subject: [PATCH] fix invalid named arguments being passed --- src/Csv/League.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Csv/League.php b/src/Csv/League.php index cac59f4..de6e3c8 100644 --- a/src/Csv/League.php +++ b/src/Csv/League.php @@ -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 @@ -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 }