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

Commit

Permalink
zendframework/zendframework#6899 - importing MergeRemoveKey class
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Dec 6, 2014
1 parent 1920819 commit 0cf2e1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ArrayUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Zend\Stdlib;

use Traversable;
use Zend\Stdlib\ArrayUtils\MergeRemoveKey;

/**
* Utility class for testing and manipulation of PHP arrays.
Expand Down Expand Up @@ -257,7 +258,7 @@ public static function iteratorToArray($iterator, $recursive = true)
public static function merge(array $a, array $b, $preserveNumericKeys = false)
{
foreach ($b as $key => $value) {
$isRemove = $value instanceof ArrayUtils\MergeRemoveKey;
$isRemove = $value instanceof MergeRemoveKey;

if (isset($a[$key]) || array_key_exists($key, $a)) {
if ($isRemove) {
Expand Down

0 comments on commit 0cf2e1f

Please sign in to comment.