Skip to content

Commit 07a0d0f

Browse files
committed
check for is_string instead of !is_int
1 parent 044100b commit 07a0d0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Query/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function orderBy(array $order): static
109109
continue;
110110
}
111111

112-
if (!is_int($value)) {
112+
if (is_string($value)) {
113113
$value = match (strtoupper($value)) {
114114
"ASCENDING", "ASC" => Direction::ASCENDING,
115115
"DESCENDING", "DESC" => Direction::DESCENDING,

0 commit comments

Comments
 (0)