Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Use array_merge, as performing a union replaces indexed array keys
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanDotPro committed Nov 10, 2011
1 parent 52a5473 commit bfef7f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProvidesEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function events()
|| (is_array($this->eventIdentifier))
|| ($this->eventIdentifier instanceof Traversable)
) {
$identifiers = array_unique($identifiers + (array) $this->eventIdentifier);
$identifiers = array_unique(array_merge($identifiers, (array) $this->eventIdentifier));
} elseif (is_object($this->eventIdentifier)) {
$identifiers[] = $this->eventIdentifier;
}
Expand Down

0 comments on commit bfef7f0

Please sign in to comment.