strncmp() expects parameter 1 to be string, array given
Opened this issue · 1 comments
h0rseduck commented
Yii2 Version 2.0.12
$ php yii migrate
PHP Warning 'yii\base\ErrorException' with message 'strncmp() expects parameter 1 to be string, array given'
in D:\OpenServer\domains\config.dek.loc\vendor\yiisoft\yii2\BaseYii.php:133
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleError(2, 'strncmp() expec...', 'D:\\OpenServer\\d...', 133, Array)
#1 D:\OpenServer\domains\config.dek.loc\vendor\yiisoft\yii2\BaseYii.php(133): strncmp(Array, '@', 1)
#2 D:\OpenServer\domains\config.dek.loc\vendor\deesoft\yii2-console\MigrateTrait.php(66): yii\BaseYii::getAlias(Array)
#3 D:\OpenServer\domains\config.dek.loc\vendor\deesoft\yii2-console\MigrateTrait.php(45): dee\console\MigrateController->getDirectories()
#4 D:\OpenServer\domains\config.dek.loc\vendor\yiisoft\yii2\base\Controller.php(154): dee\console\MigrateController->beforeAction(Object(yii\base\InlineAction))
#5 D:\OpenServer\domains\config.dek.loc\vendor\yiisoft\yii2\console\Controller.php(128): yii\base\Controller->runAction('', Array)
#6 D:\OpenServer\domains\config.dek.loc\vendor\yiisoft\yii2\base\Module.php(523): yii\console\Controller->runAction('', Array)
#7 D:\OpenServer\domains\config.dek.loc\vendor\yiisoft\yii2\console\Application.php(180): yii\base\Module->runAction('migrate', Array)
#8 D:\OpenServer\domains\config.dek.loc\vendor\yiisoft\yii2\console\Application.php(147): yii\console\Application->runAction('migrate', Array)
#9 D:\OpenServer\domains\config.dek.loc\vendor\yiisoft\yii2\base\Application.php(380): yii\console\Application->handleRequest(Object(yii\console\Request))
#10 D:\OpenServer\domains\config.dek.loc\yii(31): yii\base\Application->run()
#11 {main}
svbackend commented
Hey, i have the same error and fix it in my fork, u can replace:
"deesoft/yii2-console": "~1.0",
by "svbackend/yii2-console": ">=1.2@dev"
in your composer.json and run composer update