We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
|| $val instanceof RawSql
foreach
1 parent 118c2c4 commit b5d0874Copy full SHA for b5d0874
1 file changed
system/Database/BaseBuilder.php
@@ -3297,7 +3297,7 @@ protected function objectToArray($object)
3297
$array = [];
3298
3299
foreach (get_object_vars($object) as $key => $val) {
3300
- if ((! is_object($val) || $val instanceof RawSql) && ! is_array($val)) {
+ if ((! is_object($val)) && ! is_array($val)) {
3301
$array[$key] = $val;
3302
}
3303
0 commit comments