Skip to content

Commit

Permalink
Merge pull request #3 from deBrandSoftware/mergeOutput_bugfix_for_arr…
Browse files Browse the repository at this point in the history
…ay_merge_quirk

When array_merge is called with a null or undefined value as second p…
  • Loading branch information
milanmols authored Jun 22, 2023
2 parents 419aaf4 + d4a50d6 commit af07d97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/RDWOpenData/RDW.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ protected static function mergeOutput(array $data, array $output, string $endpoi
$data['as_' . $output_as['as_nummer'] . '_' . $item] = $value;
}
}
} else {
} else if(isset($output[0]) && is_array($output[0])) {
$data = array_merge($data, $output[0]);
}

return $data;
}

Expand Down

0 comments on commit af07d97

Please sign in to comment.