xp-framework/xp-framework — Issue #123: CsvListWriter and maps
Author: thekid
Created: 2012-02-10 10:51:00+00:00
State: open
Labels: feature

The following code causes a `lang.IllegalArgumentException` ("Object of class Date could not be converted to string"). Now while we're misusing the `write()` method which states it accepts `var[]` (we're passing a `[:var]`), I propose not to be overstrict here.

```php
setProcessor(1, new FormatDate('d.m.Y'));

$writer->write(array('id' => 1, 'date' => new Date('2012-02-10')));
?>
```