Skip to content

Commit

Permalink
add missing (int) casting
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
  • Loading branch information
samsonasik committed Aug 6, 2020
1 parent 17fc4a4 commit 8ebf3e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Adapter/DbSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ public function count()
$result = $statement->execute();
$row = $result->current();

$this->rowCount = (int) isset($row[self::ROW_COUNT_COLUMN_NAME])
? $row[self::ROW_COUNT_COLUMN_NAME]
: $row['c'];
$this->rowCount = isset($row[self::ROW_COUNT_COLUMN_NAME])
? (int) $row[self::ROW_COUNT_COLUMN_NAME]
: (int) $row['c'];

return $this->rowCount;
}
Expand Down

0 comments on commit 8ebf3e3

Please sign in to comment.