Skip to content

Commit

Permalink
Fix: Skip type comparison if disableTypeComments is true
Browse files Browse the repository at this point in the history
  • Loading branch information
berkut1 committed Jun 5, 2024
1 parent 080aab5 commit 5b588f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Platforms/AbstractPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -4693,6 +4693,11 @@ public function columnsEqual(Column $column1, Column $column2): bool
return false;
}

// If disableTypeComments is true, we do not need to check types, all comparison is already done above
if ($this->disableTypeComments) {
return true;

Check warning on line 4698 in src/Platforms/AbstractPlatform.php

View check run for this annotation

Codecov / codecov/patch

src/Platforms/AbstractPlatform.php#L4698

Added line #L4698 was not covered by tests
}

return $column1->getType() === $column2->getType();
}

Expand Down

0 comments on commit 5b588f8

Please sign in to comment.