We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 258d4a2 + 047dcd8 commit ae223d7Copy full SHA for ae223d7
src/Utilities/Helper.php
@@ -206,8 +206,8 @@ protected static function transformRow($row)
206
if ($value instanceof DateTime) {
207
$row[$key] = $value->format('Y-m-d H:i:s');
208
} else {
209
- if (is_object($value)) {
210
- $row[$key] = (string) $value;
+ if (is_object($value) && method_exists($value, '__toString')) {
+ $row[$key] = $value->__toString();
211
212
$row[$key] = $value;
213
}
0 commit comments