Skip to content

Commit

Permalink
Fix PHP 8.1 Warnings Issue #41
Browse files Browse the repository at this point in the history
  • Loading branch information
byjg committed Mar 15, 2022
1 parent bbfb8a6 commit 7c49a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public function getFileContent($file)
"checksum" => null,
"content" => null,
];
if (!file_exists($file)) {
if (empty($file) || !file_exists($file)) {
return $data;
}

Expand Down

0 comments on commit 7c49a79

Please sign in to comment.