This repository was archived by the owner on May 26, 2022. It is now read-only.
This repository was archived by the owner on May 26, 2022. It is now read-only.
Getting unsupported type exception for DateTime objects #833
Open
Description
Even though the plugin can detect DateTime objects:
spout/src/Spout/Common/Entity/Cell.php
Lines 151 to 153 in 9533acc
spout/src/Spout/Common/Helper/CellTypeHelper.php
Lines 61 to 67 in 9533acc
The writer does not have any appropriate parser for these objects and as a result my system is throwing this error:
Box\Spout\Common\Exception\InvalidArgumentException with message 'Trying to add a value with an unsupported type: object'
With a little bit of poking around, I found that this method is not being called anywhere within the package:
spout/src/Spout/Common/Entity/Cell.php
Line 196 in 9533acc
Which in-turn throws the InvalidArgumentException
here:
I currently did an ugly hack to bypass this issue. Am I missing something here?
Metadata
Metadata
Assignees
Labels
No labels