Prevent encoding invalid data
SimonFrings opened this issue · 0 comments
SimonFrings commented
CSV is limited to untyped, two-dimensional data, so there's no standard way of storing any nested structures or to differentiate a boolean value from a string or integer. When passing invalid data into the output stream, this stream should abort and close itself. This should be prevented by checking the data type when encoding the incoming data.
Refs clue/reactphp-tsv#8