mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Merge branch 'stable' into next-minor
This commit is contained in:
@ -169,6 +169,7 @@ final class ItemTranslator{
|
||||
}
|
||||
|
||||
/**
|
||||
* @phpstan-param-out bool $isComplexMapping
|
||||
* @return int[]
|
||||
* @phpstan-return array{int, int}
|
||||
* @throws TypeConversionException
|
||||
|
@ -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