File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,6 @@ parameters:
65
65
count: 3
66
66
path: system/Database/MySQLi/PreparedQuery.php
67
67
68
- -
69
- message: "#^Strict comparison using \\=\\=\\= between array<string, int|string|null> and false will always evaluate to false\\.$#"
70
- count: 1
71
- path: system/Database/Postgre/Connection.php
72
-
73
68
-
74
69
message: "#^Access to an undefined property CodeIgniter\\\\Database\\\\BaseConnection\\:\\:\\$schema\\.$#"
75
70
count: 2
Original file line number Diff line number Diff line change @@ -128,11 +128,14 @@ public function getVersion(): string
128
128
return $ this ->dataCache ['version ' ];
129
129
}
130
130
131
- if (! $ this ->connID || ( $ pgVersion = pg_version ( $ this -> connID )) === false ) {
131
+ if (! $ this ->connID ) {
132
132
$ this ->initialize ();
133
133
}
134
134
135
- return isset ($ pgVersion ['server ' ]) ? $ this ->dataCache ['version ' ] = $ pgVersion ['server ' ] : false ;
135
+ $ pgVersion = pg_version ($ this ->connID );
136
+ $ this ->dataCache ['version ' ] = $ pgVersion ['server ' ] ?? '' ;
137
+
138
+ return $ this ->dataCache ['version ' ];
136
139
}
137
140
138
141
/**
You can’t perform that action at this time.
0 commit comments