Skip to content

Commit

Permalink
Update simple-mysqli.php
Browse files Browse the repository at this point in the history
changed the return type so that we can get the status of change
  • Loading branch information
wpoet-dev committed Feb 14, 2023
1 parent a2db9bf commit 5f2db96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simple-mysqli.php
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ public function close(): void {
*
* @throws mysqli_sql_exception If mysqli function failed due to mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT)
*/
public function select_db($db_name): void {
$this->mysqli->select_db($db_name);
public function select_db($db_name): bool {
return $this->mysqli->select_db($db_name);
}
}

0 comments on commit 5f2db96

Please sign in to comment.