Skip to content

Commit

Permalink
Merge branch 'v5-dev' into v6-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksagona committed Oct 19, 2023
2 parents 484f116 + 74a44f3 commit ac78e28
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Sql/Migrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,11 @@ public function getCurrent(): ?string
*/
protected function loadCurrent(): void
{
$cur = file_get_contents($this->path . DIRECTORY_SEPARATOR . '.current');
if (false !== $cur) {
$this->current = (int)$cur;
if (file_exists($this->path . DIRECTORY_SEPARATOR . '.current')) {
$cur = file_get_contents($this->path . DIRECTORY_SEPARATOR . '.current');
if (false !== $cur) {
$this->current = (int)$cur;
}
}
}

Expand Down

0 comments on commit ac78e28

Please sign in to comment.