Skip to content

Commit d82cfc9

Browse files
committed
Removed some form of code duplication shown by scrutinizer
1 parent c785649 commit d82cfc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Builder/RunnableSelect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private function createStatement() {
161161
$statement = $db->prepare($query);
162162
$statement->execute($this->values);
163163
if($this->getCalcFoundRows()) {
164-
$this->foundRows = $db->query('SELECT FOUND_ROWS()')->fetchColumn();
164+
$this->foundRows = (int) $db->query('SELECT FOUND_ROWS()')->fetchColumn();
165165
}
166166
return $statement;
167167
}

0 commit comments

Comments
 (0)