X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Flibs%2FUDPTransport.php;h=7532ce72b94ec966a8173850a5f9d20f87a83bba;hb=afdbf8b15caeff70fac04a23db8b29875689199b;hp=7fad882a244903b9964db53d286f68112e200641;hpb=7746e1458bc052f7458d4c705df6cb327a15293c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/UDPTransport.php b/includes/libs/UDPTransport.php index 7fad882a24..7532ce72b9 100644 --- a/includes/libs/UDPTransport.php +++ b/includes/libs/UDPTransport.php @@ -54,7 +54,7 @@ class UDPTransport { // IPv6 bracketed host $host = $m[1]; $port = intval( $m[2] ); - $prefix = isset( $m[3] ) ? $m[3] : false; + $prefix = $m[3] ?? false; $domain = AF_INET6; } elseif ( preg_match( '!^udp:(?://)?([a-zA-Z0-9.-]+):(\d+)(?:/(.*))?$!', $info, $m ) ) { $host = $m[1]; @@ -62,7 +62,7 @@ class UDPTransport { $host = gethostbyname( $host ); } $port = intval( $m[2] ); - $prefix = isset( $m[3] ) ? $m[3] : false; + $prefix = $m[3] ?? false; $domain = AF_INET; } else { throw new InvalidArgumentException( __METHOD__ . ': Invalid UDP specification' );