Use original cell value event if cell contain error to generate more helpful exception message (in case of objects, for example)
This commit is contained in:
1 parent
1a06aa624d
commit
8b3b832359
2 files changed
+2
-2
No files matched your search
@@ -243,7 +243,7 @@ class WorksheetManager implements WorksheetManagerInterface
|
||||
} elseif ($cell->isEmpty()) {
|
||||
$data .= '/>';
|
||||
} else {
|
||||
$value = $cell->getValue();
|
||||
$value = $cell->getValueEvenIfError();
|
||||
|
||||
throw new InvalidArgumentException('Trying to add a value with an unsupported type: ' . (\is_object($value) ? \get_class($value) : \gettype($value)));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user