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 d218e86 commit 87af5f8Copy full SHA for 87af5f8
system/Database/BaseBuilder.php
@@ -2698,7 +2698,7 @@ protected function objectToArray($object)
2698
2699
foreach (get_object_vars($object) as $key => $val) {
2700
// There are some built in keys we need to ignore for this conversion
2701
- if ((! is_object($val) && ! is_array($val) && $key !== '_parent_name') || is_a($val, RawSql::class)) {
+ if (((! is_object($val) || $val instanceof RawSql) && ! is_array($val) && $key !== '_parent_name')) {
2702
$array[$key] = $val;
2703
}
2704
0 commit comments