Skip to content

Commit

Permalink
Remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
kitloong committed Aug 6, 2024
1 parent ad96b89 commit 4cf3e62
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Migration/Generator/ForeignKeyGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ public function makeMethod(ForeignKey $foreignKey): Method
return new Method(Foreign::FOREIGN, $foreignKey->getLocalColumns());
}

if ($foreignKey->getName() === null) {
return new Method(Foreign::FOREIGN, $foreignKey->getLocalColumns());
}

return new Method(Foreign::FOREIGN, $foreignKey->getLocalColumns(), $foreignKey->getName());
}

Expand Down

0 comments on commit 4cf3e62

Please sign in to comment.