From ac7a6522930e37efdfee38b30e9c15ef6f03806e Mon Sep 17 00:00:00 2001 From: Yada Khov Date: Wed, 9 Aug 2023 13:49:11 -0400 Subject: [PATCH] Fix php 7 compatibility --- src/Commands/SaveToS3.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Commands/SaveToS3.php b/src/Commands/SaveToS3.php index a8cacc7..9a76ac4 100644 --- a/src/Commands/SaveToS3.php +++ b/src/Commands/SaveToS3.php @@ -41,10 +41,9 @@ public function handle() { $this->comment('Saving laradump folder to s3...'); - $files = array_merge( - glob($this->tableFolder . '/*'), - glob($this->dataFolder . '/*'), - ); + $filesTableFolder = glob($this->tableFolder . '/*'); + $filesDateFolder = glob($this->dataFolder . '/*'); + $files = array_merge($filesTableFolder, $filesDateFolder); foreach ($files as $file) { $relativePath = basename(dirname($file)) . '/' . basename($file);