Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Oct 8, 2015
1 parent f0426bd commit dd3bd48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All Notable changes to `laravel-backup` will be documented in this file

###2.7.0
- Add `only-files`-option


###2.6.0
- Display warning when backupping zero bytes

Expand Down
4 changes: 2 additions & 2 deletions src/Commands/BackupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ protected function getDatabaseDump()

$this->comment('Database dumped');

return $databaseBackupHandler->getFilesToBeBackedUp[0];
return $databaseBackupHandler->getFilesToBeBackedUp()[0];
}

/**
Expand All @@ -269,4 +269,4 @@ protected function guardAgainstInvalidOptions()
throw new \Exception('cannot use only-db and only-files together');
}
}
}
}

0 comments on commit dd3bd48

Please sign in to comment.