Skip to content

Commit f5d6df1

Browse files
committed
Solve PHP 8.5 deprecation warnings
1 parent ad1bd65 commit f5d6df1

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/MapLocator/FabricMavenMapLocator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ static public function getXML(string $url): SimpleXMLElement
4848
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
4949
curl_setopt($curl, CURLOPT_URL, $url);
5050
$result = curl_exec($curl);
51-
curl_close($curl);
5251
return new SimpleXMLElement($result);
5352
}
54-
}
53+
}

src/MapLocator/LauncherMeta/LauncherMetaVersionList.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ static public function getJSON(string $url): mixed
4747
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
4848
curl_setopt($curl, CURLOPT_URL, $url);
4949
$result = curl_exec($curl);
50-
curl_close($curl);
5150
return json_decode($result);
5251
}
5352

@@ -59,4 +58,4 @@ static public function getVersionList():LauncherMetaVersionList
5958
{
6059
return new LauncherMetaVersionList(self::getJSON("https://launchermeta.mojang.com/mc/game/version_manifest.json"));
6160
}
62-
}
61+
}

0 commit comments

Comments
 (0)