You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 30d9eed
Browse filesBrowse the repository at this point in the historyBrowse files
fix(task) #143 Type the remaining untyped task options: split_character of CsvWriterTask and SplitJoinLineTask must be a string, write_headers of CsvWriterTask and log_empty_lines of CsvReaderTask are cast to bool
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ Latest
15
15
*[#243](https://github.com/cleverage/process-bundle/issues/243) Fix RecursivePropertySetterTransformer: a `\stdClass` item without the property was replaced by a copy in the output, so the input object was not modified; the property is now added to the item itself. Update documentation, add tests.
16
16
*[#242](https://github.com/cleverage/process-bundle/issues/242) Fix InputFileReaderTask: an input that is not a non-empty string (e.g. `null`) throws an explicit `\UnexpectedValueException` (`No file path given as input`) instead of a PHP warning followed by a `TypeError`. Update documentation, add tests.
17
17
*[#244](https://github.com/cleverage/process-bundle/issues/244) Fix MappingTransformer: a missing target property of a `\stdClass` destination (`initial_value` or `keep_input`) threw `Property '...' is not writable`, it is now added when the target is a simple property name (nested paths still throw). Update documentation, add tests.
18
+
*[#143](https://github.com/cleverage/process-bundle/issues/143) Type the remaining untyped task options: `split_character` of CsvWriterTask and SplitJoinLineTask must be a `string` (a wrong type used to fail later with a `TypeError`), `write_headers` of CsvWriterTask and `log_empty_lines` of CsvReaderTask are cast to `bool` (any value used to be evaluated as a boolean, so it is still accepted). Update documentation, add tests.
Copy file name to clipboardExpand all lines: docs/reference/tasks/csv_reader_task.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ Options
35
35
|`escape`|`string`||`\`| CSV escape character |
36
36
|`headers`|`array\|null`||`null`| Static list of CSV headers. If `null`, headers are read from the first line of the file; otherwise the first line is read as data |
37
37
|`mode`|`string`||`rb`| File open mode (see [fopen mode parameter](https://www.php.net/manual/en/function.fopen.php)) |
38
-
|`log_empty_lines`|`bool`||`false`| Log a warning when a line cannot be read (empty line)|
38
+
|`log_empty_lines`|`bool`||`false`| Log a warning when a line cannot be read (empty line); cast to `bool`|
0 commit comments