Skip to content

Commit d78e491

Browse files
committed
- Changed the return-type of Kir\MySQL\Database::lastInsertId from int to string
1 parent 1bde861 commit d78e491

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function prepare($query);
3434
public function exec($query, array $params = array());
3535

3636
/**
37-
* @return int
37+
* @return string
3838
*/
3939
public function getLastInsertId();
4040

src/Databases/MySQL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function exec($query, array $params = array()) {
100100
}
101101

102102
/**
103-
* @return int
103+
* @return string
104104
*/
105105
public function getLastInsertId() {
106106
return $this->pdo->lastInsertId();

0 commit comments

Comments
 (0)