Skip to content

Commit

Permalink
Fixing a bug in the options over-write
Browse files Browse the repository at this point in the history
  • Loading branch information
Garethp committed Nov 24, 2015
1 parent 5dc08de commit 9cfe63a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 0.6.5 - 2015-11-25
* Fixed a bug in `CalendarAPI::createCalendarItems()` that caused options not to be overridden

## 0.6.4 - 2015-11-24
* Added an `$options` parameter in `CalendarAPI::createCalendarItems($items, $options)` to allow you to override the
default options
Expand Down
2 changes: 1 addition & 1 deletion src/Calendar/CalendarAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function createCalendarItems($items, $options = array())
)
);

$options = array_replace_recursive($options, $defaultOptions);
$options = array_replace_recursive($defaultOptions, $options);

$items = $this->createItems($item, $options);

Expand Down

0 comments on commit 9cfe63a

Please sign in to comment.