Skip to content

Commit e32ab6a

Browse files
committed
Laravel ^12.23 Compatibility - close #81
1 parent e2124c8 commit e32ab6a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/Schema/ManagesDefaultMigrations.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,11 @@ public function mediumText($column, bool $hasKeyword = false, array $parameters
249249
/**
250250
* {@inheritdoc}
251251
*/
252-
public function morphs($name, $indexName = null): void
252+
public function morphs(...$args): void
253253
{
254+
255+
[$name] = $args;
256+
254257
$this->keyword("{$name}_type");
255258
$this->keyword("{$name}_id");
256259
}
@@ -390,17 +393,17 @@ public function unsignedTinyInteger($column, $autoIncrement = false, array $para
390393
/**
391394
* {@inheritdoc}
392395
*/
393-
public function ulidMorphs($name, $indexName = null): void
396+
public function ulidMorphs(...$args): void
394397
{
395-
$this->morphs($name, $indexName);
398+
$this->morphs(...$args);
396399
}
397400

398401
/**
399402
* {@inheritdoc}
400403
*/
401-
public function uuidMorphs($name, $indexName = null): void
404+
public function uuidMorphs(...$args): void
402405
{
403-
$this->morphs($name, $indexName);
406+
$this->morphs(...$args);
404407
}
405408

406409
/**

0 commit comments

Comments
 (0)