Skip to content

Commit

Permalink
Issue #39: Fix unhandled promise rejection. Test on PHP 8.2 and 8.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentTorregrosa committed Dec 27, 2023
1 parent db74083 commit 24da182
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
matrix:
php-versions:
- '8.1'
- '8.2'
- '8.3'
drupal-release:
- 'stable'
composer-channel:
Expand Down
2 changes: 2 additions & 0 deletions src/FileFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ public function fetch(array $drupal_projects, $destination) {
$this->io->write(" - <info>$filename</info> (<comment>$url</comment>): ", FALSE);
}

// Test that the file exists before trying to copy it.
$this->httpDownloader->get($url);
$this->httpDownloader->copy($url, $destination . '/' . $filename);

if ($this->progress) {
Expand Down

0 comments on commit 24da182

Please sign in to comment.