From b7723aebcf4e44f9af4c1833da90ca82c9d43684 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Wed, 4 Mar 2020 12:25:16 +0300 Subject: [PATCH] Fix bracket --- framework/db/mysql/QueryBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/db/mysql/QueryBuilder.php b/framework/db/mysql/QueryBuilder.php index 8694bf26d5..11b7447513 100644 --- a/framework/db/mysql/QueryBuilder.php +++ b/framework/db/mysql/QueryBuilder.php @@ -395,7 +395,7 @@ class QueryBuilder extends \yii\db\QueryBuilder // https://github.com/yiisoft/yii2/issues/13749#issuecomment-481657224 $key = [__METHOD__, $this->db->dsn]; $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) { $cache = $schemaCache; }