Ignore defined + empty check php stan errors

This commit is contained in:
Clemens Schwaighofer
2021-11-02 10:06:30 +09:00
parent 0f38cb4f89
commit f9072f64f1
3 changed files with 7 additions and 2 deletions

View File

@@ -208,6 +208,7 @@ class Backend extends \CoreLibs\DB\IO
// check schema
$SCHEMA = 'public';
/** @phpstan-ignore-next-line */
if (defined('LOGIN_DB_SCHEMA') && !empty(LOGIN_DB_SCHEMA)) {
$SCHEMA = LOGIN_DB_SCHEMA;
} elseif ($this->dbGetSchema()) {
@@ -511,6 +512,7 @@ class Backend extends \CoreLibs\DB\IO
string $associate = null,
string $file = null
): void {
/** @phpstan-ignore-next-line */
if (defined('GLOBAL_DB_SCHEMA') && !empty(GLOBAL_DB_SCHEMA)) {
$SCHEMA = GLOBAL_DB_SCHEMA;
} elseif ($this->dbGetSchema()) {