diff --git a/src/TypeMapping/MysqliTypeMapper.php b/src/TypeMapping/MysqliTypeMapper.php index 0aca82f3..b3c6c150 100644 --- a/src/TypeMapping/MysqliTypeMapper.php +++ b/src/TypeMapping/MysqliTypeMapper.php @@ -25,8 +25,8 @@ public function __construct(?DbaApi $dbaApi) { $constants = get_defined_constants(true); if ( - ! is_array($constants['mysqli']) || // @phpstan-ignore-line ! array_key_exists('mysqli', $constants) + || ! is_array($constants['mysqli']) // @phpstan-ignore-line ) { $constants['mysqli'] = []; }