From dd3bd48258db41a9e0d4e483cc26681a97dee478 Mon Sep 17 00:00:00 2001 From: freek Date: Thu, 8 Oct 2015 21:24:15 +0200 Subject: [PATCH] fix bug --- CHANGELOG.md | 4 ++++ src/Commands/BackupCommand.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fcf5fa35..e08c374f 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/Commands/BackupCommand.php b/src/Commands/BackupCommand.php index 86acb83a..44ef8825 100644 --- a/src/Commands/BackupCommand.php +++ b/src/Commands/BackupCommand.php @@ -257,7 +257,7 @@ protected function getDatabaseDump() $this->comment('Database dumped'); - return $databaseBackupHandler->getFilesToBeBackedUp[0]; + return $databaseBackupHandler->getFilesToBeBackedUp()[0]; } /** @@ -269,4 +269,4 @@ protected function guardAgainstInvalidOptions() throw new \Exception('cannot use only-db and only-files together'); } } -} +} \ No newline at end of file