From 1e7cc3e32aaa365946b20a7cc1f251d44520e121 Mon Sep 17 00:00:00 2001 From: Martin Beranek Date: Fri, 5 Apr 2024 13:06:30 +0200 Subject: [PATCH] FIX php 7.1 array merge --- src/Params/JsonInputParam.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Params/JsonInputParam.php b/src/Params/JsonInputParam.php index 029ed44..9d89963 100644 --- a/src/Params/JsonInputParam.php +++ b/src/Params/JsonInputParam.php @@ -107,7 +107,7 @@ protected function addFormInput(Form $form, string $key): BaseControl if (!empty($this->getAdditionalExamples())) { $fullSchema['examples'] = array_merge( ["default" => is_array($this->getExample())? $this->getExample() : json_decode($this->getExample(), true)], - $this->getAdditionalExamples(), + $this->getAdditionalExamples() ); } elseif (!empty($this->getExample())) { $fullSchema['example'] = is_array($this->getExample())? $this->getExample() : json_decode($this->getExample(), true);