Skip to content

Commit e478c71

Browse files
staabmclxmstaab
andauthored
debug phpstan (#231)
Co-authored-by: Markus Staab <[email protected]>
1 parent 47c9935 commit e478c71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/QueryReflection/MysqliQueryReflector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ public function __construct(mysqli $mysqli)
6363
$constants = get_defined_constants(true);
6464
foreach ($constants['mysqli'] as $c => $n) {
6565
if (!\is_int($n)) {
66-
throw new ShouldNotHappenException();
66+
// skip bool constants like MYSQLI_IS_MARIADB
67+
continue;
6768
}
6869
if (preg_match('/^MYSQLI_TYPE_(.*)/', $c, $m)) {
6970
if (!\is_string($m[1])) {

0 commit comments

Comments
 (0)