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.
1 parent 8c909ea commit 047dcd8Copy full SHA for 047dcd8
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