File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,6 @@ parameters:
6565 count: 3
6666 path: system/Database/MySQLi/PreparedQuery.php
6767
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-
7368 -
7469 message: "#^Access to an undefined property CodeIgniter\\\\Database\\\\BaseConnection\\:\\:\\$schema\\.$#"
7570 count: 2
Original file line number Diff line number Diff line change @@ -128,11 +128,14 @@ public function getVersion(): string
128128 return $ this ->dataCache ['version ' ];
129129 }
130130
131- if (! $ this ->connID || ( $ pgVersion = pg_version ( $ this -> connID )) === false ) {
131+ if (! $ this ->connID ) {
132132 $ this ->initialize ();
133133 }
134134
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 ' ];
136139 }
137140
138141 /**
You can’t perform that action at this time.
0 commit comments