Better support for errored cells
This commit is contained in:
1 parent
1b64a06fbe
commit
f7c483adbd
3 files changed
+16
-4
No files matched your search
@@ -88,7 +88,7 @@ class Cell
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
return !$this->isError() ? $this->value : null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -203,6 +203,6 @@ class Cell
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return (string) $this->value;
|
||||
return (string) $this->getValue();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user