Skip to content

Commit c3c170e

Browse files
committed
refactor: if condition
1 parent 0cd3993 commit c3c170e

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

phpstan-baseline.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,11 +1466,6 @@
14661466
'count' => 1,
14671467
'path' => __DIR__ . '/system/Database/OCI8/Connection.php',
14681468
];
1469-
$ignoreErrors[] = [
1470-
'message' => '#^Only booleans are allowed in a negated boolean, array\\|string given\\.$#',
1471-
'count' => 1,
1472-
'path' => __DIR__ . '/system/Database/OCI8/Connection.php',
1473-
];
14741469
$ignoreErrors[] = [
14751470
'message' => '#^PHPDoc type string of property CodeIgniter\\\\Database\\\\OCI8\\\\Connection\\:\\:\\$escapeChar is not the same as PHPDoc type array\\|string of overridden property CodeIgniter\\\\Database\\\\BaseConnection\\<resource,resource\\>\\:\\:\\$escapeChar\\.$#',
14761471
'count' => 1,

system/Database/OCI8/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ public function insertID(): int
602602
}
603603
}
604604

605-
if (! $primaryColumnName) {
605+
if ($primaryColumnName === '') {
606606
return 0;
607607
}
608608

0 commit comments

Comments
 (0)