Fixes from phan/phpstan tests

This commit is contained in:
Clemens Schwaighofer
2022-04-28 14:17:30 +09:00
parent 71a431d5aa
commit 51e700cd10
5 changed files with 78 additions and 6 deletions

View File

@@ -604,7 +604,7 @@ class PgSQL implements \CoreLibs\DB\SQL\SqlInterface\SqlFunctions
return '';
}
// extract element
$return_string = pg_version($this->dbh)[$parameter] ?? '';
$return_string = (string)(pg_version($this->dbh)[$parameter] ?? '');
// for version, strip if requested
if (
in_array($parameter, ['server']) &&