function NoProxyPattern::makeIpData
Creates an ip data object
Parameters
string $ip in_addr:
int $size Byte size of in_addr:
null|string $netmask Network mask:
1 call to NoProxyPattern::makeIpData()
- NoProxyPattern::ipCheckData in vendor/
composer/ composer/ src/ Composer/ Util/ NoProxyPattern.php - Creates an object containing IP data if the host is an IP address
File
-
vendor/
composer/ composer/ src/ Composer/ Util/ NoProxyPattern.php, line 343
Class
- NoProxyPattern
- Tests URLs against NO_PROXY patterns
Namespace
Composer\UtilCode
private function makeIpData(string $ip, int $size, ?string $netmask) : stdClass {
return (object) [
'ip' => $ip,
'size' => $size,
'netmask' => $netmask,
];
}