Skip to content

Commit

Permalink
Merge pull request #7 from it-can/1.x
Browse files Browse the repository at this point in the history
Fix php8.4 deprecated notices
  • Loading branch information
DarkGhostHunter authored Jan 15, 2025
2 parents 7c543bf + ea50395 commit d5345f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CustomizableMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected function addColumns(Blueprint $table): void
/**
* Create a new morph relation.
*/
protected function createMorph(Blueprint $table, string $name, string $indexName = null): void
protected function createMorph(Blueprint $table, string $name, ?string $indexName = null): void
{
if ($this->morphCalled) {
throw new BadMethodCallException('Using multiple customizable morph calls is unsupported.');
Expand All @@ -102,7 +102,7 @@ protected function createMorph(Blueprint $table, string $name, string $indexName
/**
* Create a new nullable morph relation.
*/
protected function createNullableMorph(Blueprint $table, string $name, string $indexName = null): void
protected function createNullableMorph(Blueprint $table, string $name, ?string $indexName = null): void
{
if ($this->morphCalled) {
throw new BadMethodCallException('Using multiple customizable morph calls is unsupported.');
Expand All @@ -127,7 +127,7 @@ protected function createNullableMorph(Blueprint $table, string $name, string $i
* @param string|null $indexName
* @return $this
*/
public function morph(string $type, string $indexName = null): static
public function morph(string $type, ?string $indexName = null): static
{
$this->morphType = $type;
$this->morphIndexName = $indexName;
Expand Down

0 comments on commit d5345f1

Please sign in to comment.