Skip to content

Commit d2d7531

Browse files
authored
Attempt to remove of Yiisoft/Array depedency (#217)
1 parent a662eea commit d2d7531

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Schema.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use JsonException;
88
use Throwable;
9-
use Yiisoft\Arrays\ArrayHelper;
109
use Yiisoft\Db\Constraint\CheckConstraint;
1110
use Yiisoft\Db\Constraint\Constraint;
1211
use Yiisoft\Db\Constraint\DefaultValueConstraint;
@@ -16,6 +15,7 @@
1615
use Yiisoft\Db\Exception\InvalidConfigException;
1716
use Yiisoft\Db\Exception\NotSupportedException;
1817
use Yiisoft\Db\Expression\Expression;
18+
use Yiisoft\Db\Helper\ArrayHelper;
1919
use Yiisoft\Db\Schema\AbstractSchema;
2020
use Yiisoft\Db\Schema\ColumnSchemaBuilderInterface;
2121
use Yiisoft\Db\Schema\ColumnSchemaInterface;
@@ -372,7 +372,7 @@ protected function loadTableIndexes(string $tableName): array
372372

373373
/** @var array[] $indexes */
374374
$indexes = $this->normalizeRowKeyCase($indexes, true);
375-
$indexes = ArrayHelper::index($indexes, null, 'name');
375+
$indexes = ArrayHelper::index($indexes, null, ['name']);
376376
$result = [];
377377

378378
/**

0 commit comments

Comments
 (0)