From 3d91fa8bd7ebd12e270a6443b3597240371c3793 Mon Sep 17 00:00:00 2001 From: Antoine MARQUES <93318966+AntoineMarques@users.noreply.github.com> Date: Fri, 5 Jan 2024 02:48:14 +0100 Subject: [PATCH] Update Configuration.mustache (#17529) BUG: in getHostString : typo in variable usage : $hostsSettings instead of $hostSettings --- .../src/main/resources/php/Configuration.mustache | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/php/Configuration.mustache b/modules/openapi-generator/src/main/resources/php/Configuration.mustache index dad3b41f772..0f6aaf01f95 100644 --- a/modules/openapi-generator/src/main/resources/php/Configuration.mustache +++ b/modules/openapi-generator/src/main/resources/php/Configuration.mustache @@ -510,11 +510,11 @@ class Configuration } // check array index out of bound - if ($hostIndex < 0 || $hostIndex >= count($hostsSettings)) { - throw new \InvalidArgumentException("Invalid index $hostIndex when selecting the host. Must be less than ".count($hostsSettings)); + if ($hostIndex < 0 || $hostIndex >= count($hostSettings)) { + 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"]; // go through variable and assign a value