Skip to content

Commit 4c01499

Browse files
committed
refactor: simplify if condition
1 parent 8a61688 commit 4c01499

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
@@ -1464,7 +1464,7 @@ public function orderBy(string $orderBy, string $direction = '', ?bool $escape =
14641464
$direction = in_array($direction, ['ASC', 'DESC'], true) ? ' ' . $direction : '';
14651465
}
14661466

1467-
if (! is_bool($escape)) {
1467+
if ($escape === null) {
14681468
$escape = $this->db->protectIdentifiers;
14691469
}
14701470

0 commit comments

Comments
 (0)