Fix bracket

This commit is contained in:
Alexander Makarov
2020-03-04 12:25:16 +03:00
parent db9e2fa709
commit b7723aebcf

View File

@ -395,7 +395,7 @@ class QueryBuilder extends \yii\db\QueryBuilder
// https://github.com/yiisoft/yii2/issues/13749#issuecomment-481657224 // https://github.com/yiisoft/yii2/issues/13749#issuecomment-481657224
$key = [__METHOD__, $this->db->dsn]; $key = [__METHOD__, $this->db->dsn];
$cache = null; $cache = null;
$schemaCache = (\Yii::$app && is_string($this->db->schemaCache) ? \Yii::$app->get($this->db->schemaCache, false)) : $this->db->schemaCache; $schemaCache = (\Yii::$app && is_string($this->db->schemaCache)) ? \Yii::$app->get($this->db->schemaCache, false) : $this->db->schemaCache;
if ($this->db->enableSchemaCache && $schemaCache instanceof CacheInterface) { if ($this->db->enableSchemaCache && $schemaCache instanceof CacheInterface) {
$cache = $schemaCache; $cache = $schemaCache;
} }