Skip to content

Commit

Permalink
Fix php 7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
yadakhov committed Aug 9, 2023
1 parent c46aeea commit ac7a652
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Commands/SaveToS3.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ac7a652

Please sign in to comment.