We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a16fbbf commit 7aef21eCopy full SHA for 7aef21e
1 file changed
src/PackagistAPI.php
@@ -27,8 +27,7 @@ public function getPackageInfo(string $package): array
27
try {
28
$response = $this->http_client->request('GET', "https://repo.packagist.org/packages/{$package}.json");
29
return json_decode($response->getBody()->getContents(), true) ?? [];
30
-
31
- } catch (GuzzleException) {
+ } catch (GuzzleException $e) {
32
fwrite($this->stderr, "Could not find info for {$package} on Packagist\n");
33
return [];
34
}
0 commit comments