Skip to content

Commit

Permalink
BaseDriver: fixed loadFile() incorrent failure on empty files
Browse files Browse the repository at this point in the history
  • Loading branch information
JanTvrdik committed Dec 8, 2015
1 parent 1eb7a02 commit d17c9e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/BaseDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct(IDbal $dbal, $tableName = 'migrations')
public function loadFile($path)
{
$query = @file_get_contents($path);
if (!$query) {
if ($query === FALSE) {
throw new IOException("Cannot open file '$path'.");
}

Expand Down

0 comments on commit d17c9e2

Please sign in to comment.