Skip to content

Commit

Permalink
Merge pull request #611 from WideeFr/3.x
Browse files Browse the repository at this point in the history
#464 Fix error strpos if $lastfile is null
  • Loading branch information
markstory authored Apr 13, 2023
2 parents 8eaf51d + a96b0f8 commit bd0a5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/BakeMigrationDiffCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ protected function checkSync()
$lastVersion = $this->migratedItems[0]['version'];
$lastFile = end($this->migrationsFiles);

return (bool)strpos($lastFile, (string)$lastVersion);
return $lastFile && (bool)strpos($lastFile, (string)$lastVersion);
}

return false;
Expand Down

0 comments on commit bd0a5cb

Please sign in to comment.