Skip to content

Commit d1d11d0

Browse files
committed
fix(docker): fix spec with real world data..
1 parent 7ff21bc commit d1d11d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Util/ContainerToHostsFileLinesUtil.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __invoke(
2727
// Global
2828
if (!empty($container->ipAddresses)) {
2929
$ip = current($container->ipAddresses);
30-
if (is_string($ip)) {
30+
if (is_string($ip) && $ip) {
3131
$ips[$ip] = $container->getHostnames($tld);
3232
}
3333
}
@@ -62,7 +62,7 @@ public function __invoke(
6262

6363
if ($reverseProxyIp) {
6464
$ips[$reverseProxyIp] = array_merge(
65-
$ips[$reverseProxyIp],
65+
$ips[$reverseProxyIp] ?? [],
6666
$container->extractUrlsFromEnvVars($extractFromEnvVars)
6767
);
6868
}

0 commit comments

Comments
 (0)