Skip to content

Commit 0090df4

Browse files
committed
fix: static analysis
1 parent 167e2aa commit 0090df4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QueryDataTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ protected function getSelectedColumns($query): array
637637
];
638638

639639
foreach ($q->columns ?? [] as $select) {
640-
$sql = trim((string) $select instanceof Expression ? $select->getValue($this->getConnection()->getQueryGrammar()) : $select);
640+
$sql = trim($select instanceof Expression ? $select->getValue($this->getConnection()->getQueryGrammar()) : (string) $select);
641641
// Remove expressions
642642
$sql = preg_replace('/\s*\w*\((?:[^()]*|(?R))*\)/', '_', $sql);
643643
// Remove multiple spaces

0 commit comments

Comments
 (0)