diff --git a/src/Composer/Repository/Vcs/GitHubDriver.php b/src/Composer/Repository/Vcs/GitHubDriver.php index 9899fa76a..ef33a55b1 100644 --- a/src/Composer/Repository/Vcs/GitHubDriver.php +++ b/src/Composer/Repository/Vcs/GitHubDriver.php @@ -196,7 +196,7 @@ class GitHubDriver extends VcsDriver $graphql = 'query{repository(owner:"'.$this->owner.'",name:"'.$this->repository.'"){fundingLinks{platform,url}}}'; try { - $result = $this->remoteFilesystem->getContents($this->originUrl, 'https://api.github.com/graphql', false, array( + $result = $this->httpDownloader->get('https://api.github.com/graphql', array( 'http' => array( 'method' => 'POST', 'content' => json_encode(array('query' => $graphql)), diff --git a/tests/Composer/Test/Fixtures/installer/install-funding-notice.test b/tests/Composer/Test/Fixtures/installer/install-funding-notice.test index 638a31d97..bfac55518 100644 --- a/tests/Composer/Test/Fixtures/installer/install-funding-notice.test +++ b/tests/Composer/Test/Fixtures/installer/install-funding-notice.test @@ -41,10 +41,16 @@ Installs a simple package with exact match requirement --RUN-- install --EXPECT-OUTPUT-- +No lock file found. Updating dependencies instead of installing from lock file. Use composer update over composer install if you do not have a lock file. Loading composer repositories with package information -Updating dependencies (including require-dev) -Package operations: 3 installs, 0 updates, 0 removals +Updating dependencies +Lock file operations: 3 installs, 0 updates, 0 removals + - Locking b/b (1.0.0) + - Locking d/d (1.0.0) + - Locking a/a (1.0.0) Writing lock file +Installing dependencies from lock file (including require-dev) +Package operations: 3 installs, 0 updates, 0 removals Generating autoload files 2 packages you are using are looking for funding. Use the composer fund command to find out more!