Skip to content

Commit

Permalink
Fix local patches for Composer 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
IllyaMoskvin authored and CybotTM committed Apr 20, 2022
1 parent 12597c5 commit 6f2285d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Netresearch/Composer/Patches/Downloader/Composer.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ protected function getOriginUrl($url)
*/
public function getContents($url)
{
return $this->remoteFileSystem->getContents($this->getOriginUrl($url), $url, false);
$originUrl = $this->getOriginUrl($url);

if (is_null($originUrl)) {
return file_get_contents($url);
}

return $this->remoteFileSystem->getContents($originUrl, $url, false);
}

/**
Expand Down

0 comments on commit 6f2285d

Please sign in to comment.