phpan/phpstan clean up runs, minor update to DB\IO

DB\IO dbReturn method has a third parameter to set read only assoc and
not number data from the query

Install basic composer for trying out psalm

setting phpan/phpstan for basic static checking and do basic clean up on
all of the files
This commit is contained in:
Clemens Schwaighofer
2019-09-18 09:25:35 +09:00
parent 25941f4b49
commit 9ea8364aab
42 changed files with 1179 additions and 242 deletions

View File

@@ -423,7 +423,7 @@ class PgSQL
{
if (false === $limit) {
$limit = strlen($text) - 1;
$output = array();
$output = array ();
}
if ('{}' != $text) {
do {
@@ -435,7 +435,7 @@ class PgSQL
return $offset;
}
} else {
$offset = $this->__dbArrayParse($text, $output[], $limit, $offset + 1);
$offset = $this->__dbArrayParse($text, $output, $limit, $offset + 1);
}
} while ($limit > $offset);
}