PHPStan 1.6.3

This commit is contained in:
Dylan K. Taylor
2022-04-28 16:06:20 +01:00
parent 223893fd5c
commit 33cf085692
3 changed files with 18 additions and 21 deletions

View File

@ -174,7 +174,7 @@ class UPnP{
'/upnp:controlURL'
), "xpath query is borked");
if(count($xpathResult) === 0){
if($xpathResult === null || count($xpathResult) === 0){
throw new UPnPException("Your router does not support portforwarding");
}
$controlURL = (string) $xpathResult[0];