From b89c7ed52a2a5400f61c335030f99bb678ebc2bd Mon Sep 17 00:00:00 2001 From: Alexander Schranz Date: Mon, 6 Sep 2021 01:11:14 +0200 Subject: [PATCH] Add compatibility for PHP 8.1 --- src/Goodby/CSV/Export/Standard/CsvFileObject.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Goodby/CSV/Export/Standard/CsvFileObject.php b/src/Goodby/CSV/Export/Standard/CsvFileObject.php index da3f4d3..7fcddab 100644 --- a/src/Goodby/CSV/Export/Standard/CsvFileObject.php +++ b/src/Goodby/CSV/Export/Standard/CsvFileObject.php @@ -47,7 +47,8 @@ public function setCsvFilter($filter) * @param useless $escape THIS PARAM IS UNSED, BUT REQUIRED EXISTS, see https://bugs.php.net/bug.php?id=68479 and https://github.com/goodby/csv/issues/56 * @return int|void */ - public function fputcsv($fields, $delimiter = null, $enclosure = null, $escape = null) + #[ReturnTypeWillChange] + public function fputcsv($fields, $delimiter = null, $enclosure = null, $escape = null, $eol = null) { // Temporary output a line to memory to get line as string $fp = fopen('php://temp', 'w+');