// Remove the fixed test value.
$nodes = array_values($nodes);
$testindex = array_search('key', $nodes);
- $testvalue = array_shift(array_splice($nodes, $testindex, 1));
+ $tmp = array_splice($nodes, $testindex, 1);
+ $testvalue = array_shift($tmp);
foreach ($nodes as $node) {
$h->add($node);
// Remove the fixed test value.
$nodes = array_values($nodes);
$testindex = array_search('key', $nodes);
- $testvalue = array_shift(array_splice($nodes, $testindex, 1));
+ $tmp = array_splice($nodes, $testindex, 1);
+ $testvalue = array_shift($tmp);
foreach ($nodes as $node) {
$h->add($node);