Skip to content

Commit

Permalink
refactor: Removed redundant || $val instanceof RawSql check from th…
Browse files Browse the repository at this point in the history
…e `foreach` loop.
  • Loading branch information
maniaba committed Nov 13, 2024
1 parent 118c2c4 commit b5d0874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Database/BaseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3297,7 +3297,7 @@ protected function objectToArray($object)
$array = [];

foreach (get_object_vars($object) as $key => $val) {
if ((! is_object($val) || $val instanceof RawSql) && ! is_array($val)) {
if ((! is_object($val)) && ! is_array($val)) {
$array[$key] = $val;
}
}
Expand Down

0 comments on commit b5d0874

Please sign in to comment.