Skip to content

Commit 6ca72de

Browse files
committed
fix
1 parent cf1dc3b commit 6ca72de

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,6 @@ parameters:
194194
count: 1
195195
path: src/Rules/SyntaxErrorInQueryMethodRule.php
196196

197-
-
198-
message: "#^Call to function is_string\\(\\) with string will always evaluate to true\\.$#"
199-
count: 2
200-
path: src/TypeMapping/MysqliTypeMapper.php
201-
202197
-
203198
message: "#^Only booleans are allowed in an if condition, int given\\.$#"
204199
count: 1

src/TypeMapping/MysqliTypeMapper.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,8 @@ public function __construct(?DbaApi $dbaApi)
4343
}
4444

4545
if (1 === preg_match('/^MYSQLI_TYPE_(.*)/', $c, $m)) {
46-
if (! \is_string($m[1])) {
47-
throw new ShouldNotHappenException();
48-
}
4946
$this->nativeTypes[$n] = $m[1];
5047
} elseif (1 === preg_match('/MYSQLI_(.*)_FLAG$/', $c, $m)) {
51-
if (! \is_string($m[1])) {
52-
throw new ShouldNotHappenException();
53-
}
5448
if (! \array_key_exists($n, $this->nativeFlags)) {
5549
$this->nativeFlags[$n] = $m[1];
5650
}

0 commit comments

Comments
 (0)