Skip to content

Commit d5d6758

Browse files
staabmclxmstaab
andauthored
enable mysqli exception throwing on php < 8.1 (#24)
Co-authored-by: Markus Staab <[email protected]>
1 parent 8b814f5 commit d5d6758

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/QueryReflection/MysqliQueryReflector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ public function __construct(mysqli $mysqli)
4545
$this->db = $mysqli;
4646
// set a sane default.. atm this should not have any impact
4747
$this->db->set_charset('utf8');
48+
// enable exception throwing on php <8.1
49+
mysqli_report(\MYSQLI_REPORT_ERROR | \MYSQLI_REPORT_STRICT);
4850

4951
$this->nativeTypes = [];
5052
$this->nativeFlags = [];

0 commit comments

Comments
 (0)