Skip to content

Commit b5d0874

Browse files
committed
refactor: Removed redundant || $val instanceof RawSql check from the foreach loop.
1 parent 118c2c4 commit b5d0874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Database/BaseBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3297,7 +3297,7 @@ protected function objectToArray($object)
32973297
$array = [];
32983298

32993299
foreach (get_object_vars($object) as $key => $val) {
3300-
if ((! is_object($val) || $val instanceof RawSql) && ! is_array($val)) {
3300+
if ((! is_object($val)) && ! is_array($val)) {
33013301
$array[$key] = $val;
33023302
}
33033303
}

0 commit comments

Comments
 (0)