mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
PHPStan 1.9 features
This commit is contained in:
@@ -150,6 +150,7 @@ class UPnP{
|
||||
throw new UPnPException("Failed to recognize the port number from the router's url: {$location}");
|
||||
}
|
||||
$urlPort = $url['port'];
|
||||
$err = "";
|
||||
$response = Internet::getURL($location, 3, [], $err);
|
||||
if($response === null){
|
||||
throw new UPnPException("Unable to access XML: {$err}");
|
||||
|
Reference in New Issue
Block a user