Yii2: Error in framework/db/mysql/QueryBuilder.php // line 398

Created on 4 Mar 2020  路  4Comments  路  Source: yiisoft/yii2

On Line 398 is:
$schemaCache = (\Yii::$app && is_string($this->db->schemaCache) ? \Yii::$app->get($this->db->schemaCache, false) : $this->db->schemaCache;

Should Be:
$schemaCache = (\Yii::$app && is_string($this->db->schemaCache)) ? \Yii::$app->get($this->db->schemaCache, false) : $this->db->schemaCache;

bug

Most helpful comment

I'm sleep-coding :)

All 4 comments

Fixed in db9e2fa

Still wrong place of this bracket. Now is
syntax error, unexpected ')'

I'm sleep-coding :)

Was this page helpful?
0 / 5 - 0 ratings