mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 22:20:56 +00:00
Update Configuration.mustache (#17529)
BUG: in getHostString : typo in variable usage : $hostsSettings instead of $hostSettings
This commit is contained in:
parent
063865973d
commit
3d91fa8bd7
@ -510,11 +510,11 @@ class Configuration
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check array index out of bound
|
// check array index out of bound
|
||||||
if ($hostIndex < 0 || $hostIndex >= count($hostsSettings)) {
|
if ($hostIndex < 0 || $hostIndex >= count($hostSettings)) {
|
||||||
throw new \InvalidArgumentException("Invalid index $hostIndex when selecting the host. Must be less than ".count($hostsSettings));
|
throw new \InvalidArgumentException("Invalid index $hostIndex when selecting the host. Must be less than ".count($hostSettings));
|
||||||
}
|
}
|
||||||
|
|
||||||
$host = $hostsSettings[$hostIndex];
|
$host = $hostSettings[$hostIndex];
|
||||||
$url = $host["url"];
|
$url = $host["url"];
|
||||||
|
|
||||||
// go through variable and assign a value
|
// go through variable and assign a value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user