mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 13:02:24 +08:00
Fixed bad instnaceof check in yii\db\Schema::getTableMetadata()
This commit is contained in:
@ -732,7 +732,7 @@ abstract class Schema extends BaseObject
|
||||
$cache = null;
|
||||
if ($this->db->enableSchemaCache && !in_array($name, $this->db->schemaCacheExclude, true)) {
|
||||
$schemaCache = is_string($this->db->schemaCache) ? Yii::$app->get($this->db->schemaCache, false) : $this->db->schemaCache;
|
||||
if ($schemaCache instanceof Cache) {
|
||||
if ($schemaCache instanceof CacheInterface) {
|
||||
$cache = $schemaCache;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user