1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-10-16 17:16:19 +02:00

fix: deprecation error (#4720)

rssbridge.ERROR (shutdown) 8192: Using ${var} in strings is deprecated, use {$var} instead in bridges/ModrinthBridge.php line 82
This commit is contained in:
Dag
2025-09-08 12:47:25 +02:00
committed by GitHub
parent d10c2b1ad1
commit f545800af6

View File

@@ -79,7 +79,7 @@ class ModrinthBridge extends BridgeAbstract
{ {
$apiUrl = 'https://api.modrinth.com/v2/project'; $apiUrl = 'https://api.modrinth.com/v2/project';
$projectName = $this->getInput('name'); $projectName = $this->getInput('name');
$url = "{$apiUrl}/${projectName}/version"; $url = sprintf('%s/%s/version', $apiUrl, $projectName);
$queryTable = [ $queryTable = [
'loaders' => $this->parseInputList($this->getInput('loaders')), 'loaders' => $this->parseInputList($this->getInput('loaders')),