Skip to content

Commit 6cd74bf

Browse files
authored
refactor: compare $db->connID to false (#9891)
1 parent 8561f53 commit 6cd74bf

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

system/Database/Database.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function load(array $params = [], string $alias = '')
7070
*/
7171
public function loadForge(ConnectionInterface $db): Forge
7272
{
73-
if (! $db->connID) {
73+
if ($db->connID === false) {
7474
$db->initialize();
7575
}
7676

@@ -84,7 +84,7 @@ public function loadForge(ConnectionInterface $db): Forge
8484
*/
8585
public function loadUtils(ConnectionInterface $db): BaseUtils
8686
{
87-
if (! $db->connID) {
87+
if ($db->connID === false) {
8888
$db->initialize();
8989
}
9090

utils/phpstan-baseline/booleanNot.exprNotBoolean.neon

Lines changed: 0 additions & 8 deletions
This file was deleted.

utils/phpstan-baseline/loader.neon

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# total 2168 errors
1+
# total 2166 errors
22

33
includes:
44
- argument.type.neon
55
- arguments.count.neon
66
- assign.propertyType.neon
7-
- booleanNot.exprNotBoolean.neon
87
- codeigniter.getReassignArray.neon
98
- codeigniter.modelArgumentType.neon
109
- codeigniter.superglobalAccess.neon

0 commit comments

Comments
 (0)