Skip to content

Commit 2c65c75

Browse files
committed
fix: method was defined twice
1 parent 6d04cee commit 2c65c75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Schema/BlueprintIndex.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
use Illuminate\Support\Str;
99
use RuntimeException;
1010

11-
/**
12-
* @method \Illuminate\Database\Schema\IndexDefinition uniqueIndex(string|string[] $columns, ?string $name = null, ?string $algorithm = null)
13-
*/
1411
trait BlueprintIndex
1512
{
1613
/**
@@ -70,14 +67,17 @@ public function dropUniqueIndexIfExists(array|string $index): Fluent
7067
}
7168

7269
/**
73-
* Specify a unique index for the table.
70+
* @param string|string[] $columns
71+
*
72+
* @return IndexDefinition
7473
*/
7574
public function uniqueIndex($columns, ?string $name = null, ?string $algorithm = null): Fluent
7675
{
7776
if (null === $name) {
7877
$name = str_replace('unique2', 'unique', $this->createIndexName('unique2', (array) $columns));
7978
}
8079

80+
// @phpstan-ignore return.type
8181
return $this->indexCommand('unique2', $columns, $name, $algorithm);
8282
}
8383

0 commit comments

Comments
 (0)