Skip to content

Commit

Permalink
FIX php 7.1 array merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Beranek committed Apr 5, 2024
1 parent 0300157 commit 1e7cc3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Params/JsonInputParam.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1e7cc3e

Please sign in to comment.