PHPStan 1.9 features

This commit is contained in:
Dylan K. Taylor
2022-11-04 20:23:34 +00:00
parent bfd1b2c635
commit 2fdc46c165
13 changed files with 40 additions and 1 deletions

View File

@ -169,6 +169,7 @@ final class ItemTranslator{
}
/**
* @phpstan-param-out bool $isComplexMapping
* @return int[]
* @phpstan-return array{int, int}
* @throws TypeConversionException

View File

@ -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}");