Skip to content

Commit

Permalink
Merge pull request #34 from ho-nl/feature/fix-required-delimiter
Browse files Browse the repository at this point in the history
Delimiter should be an optional parameter to keep it backward compati…
  • Loading branch information
SimonPrins authored Oct 19, 2022
2 parents d8dad39 + a826216 commit d6a616c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Streamer/FileCsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class FileCsv
/** @var Log $log */
private $log;

/** @var string $delimiter */
/** @var ?string $delimiter */
private $delimiter;

/** @var array $headers */
Expand All @@ -57,7 +57,7 @@ public function __construct(
DirectoryList $directoryList,
string $requestFile,
Log $log,
string $delimiter,
?string $delimiter = null,
array $headers = [],
string $escapeCharacter = ''
) {
Expand Down
4 changes: 2 additions & 2 deletions src/Streamer/HttpCsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class HttpCsv
private $log;

/**
* @var string
* @var ?string
*/
private $delimiter;

Expand All @@ -94,7 +94,7 @@ public function __construct(
ConsoleOutput $consoleOutput,
string $requestUrl,
Log $log,
string $delimiter,
?string $delimiter = null,
string $encodingConversion = '',
string $requestMethod = 'GET',
array $requestOptions = [],
Expand Down

0 comments on commit d6a616c

Please sign in to comment.