phpstan fixes for DB IO, add array key modify method that keeps value

This commit is contained in:
Clemens Schwaighofer
2025-04-22 11:11:55 +09:00
parent bacd31d0e3
commit e0003beae2
4 changed files with 151 additions and 6 deletions

View File

@@ -2544,7 +2544,10 @@ class IO
} // only go if NO cursor exists
// if cursor exists ...
if ($this->cursor_ext[$query_hash]['cursor']) {
if (
$this->cursor_ext[$query_hash]['cursor'] instanceof \PgSql\Result ||
$this->cursor_ext[$query_hash]['cursor'] == 1
) {
if ($first_call === true) {
$this->cursor_ext[$query_hash]['log'][] = 'First call';
// count the rows returned (if select)