We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23e404d commit 4c638a9Copy full SHA for 4c638a9
src/Models/CheckQueryReturnTrait.php
@@ -21,7 +21,7 @@ private function checkQueryReturn(bool $return): void
21
$message = 'Query error: ' . $error['code'] . ', '
22
. $error['message'] . ', query: ' . $this->db->getLastQuery();
23
24
- throw new DatabaseException($message, $error['code']);
+ throw new DatabaseException($message, (int) $error['code']);
25
}
26
27
0 commit comments