Skip to content

Commit b86a8b8

Browse files
authored
Typecast $column to string when ordering
1 parent ad4422a commit b86a8b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Query/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ public function orderBy($column, $direction = 'asc')
512512
if ($column == 'natural') {
513513
$this->orders['$natural'] = $direction;
514514
} else {
515-
$this->orders[$column] = $direction;
515+
$this->orders[(string) $column] = $direction;
516516
}
517517

518518
return $this;

0 commit comments

Comments
 (0)