mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-16 03:28:56 +08:00
Fix #17985: Convert migrationNamespaces to array if needed
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
This commit is contained in:
@@ -119,6 +119,8 @@ abstract class BaseMigrateController extends Controller
|
||||
throw new InvalidConfigException('At least one of `migrationPath` or `migrationNamespaces` should be specified.');
|
||||
}
|
||||
|
||||
$this->migrationNamespaces = (array) $this->migrationNamespaces;
|
||||
|
||||
foreach ($this->migrationNamespaces as $key => $value) {
|
||||
$this->migrationNamespaces[$key] = trim($value, '\\');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user