Skip to content

Commit cc59b39

Browse files
committed
string interpolation
1 parent a8e5027 commit cc59b39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SPC/store/Downloader.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ class Downloader
2626
public static function getPECLInfo(string $name, array $source): array
2727
{
2828
$package = $source['pecl'] ?? (str_starts_with($name, 'ext-') ? substr($name, 4) : $name);
29-
$api_url = "https://pecl.php.net/rest/r/" . strtolower($package) . '/allreleases.xml';
29+
$lp = strtolower($package);
30+
$api_url = "https://pecl.php.net/rest/r/{$lp}/allreleases.xml";
3031
logger()->debug("Fetching {$name} source from PECL: {$api_url}");
3132
$xml = self::curlExec(
3233
url: $api_url,

0 commit comments

Comments
 (0)