We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ff21bc commit d1d11d0Copy full SHA for d1d11d0
src/Util/ContainerToHostsFileLinesUtil.php
@@ -27,7 +27,7 @@ public function __invoke(
27
// Global
28
if (!empty($container->ipAddresses)) {
29
$ip = current($container->ipAddresses);
30
- if (is_string($ip)) {
+ if (is_string($ip) && $ip) {
31
$ips[$ip] = $container->getHostnames($tld);
32
}
33
@@ -62,7 +62,7 @@ public function __invoke(
62
63
if ($reverseProxyIp) {
64
$ips[$reverseProxyIp] = array_merge(
65
- $ips[$reverseProxyIp],
+ $ips[$reverseProxyIp] ?? [],
66
$container->extractUrlsFromEnvVars($extractFromEnvVars)
67
);
68
0 commit comments