Skip to content

Commit

Permalink
Fixed multiple enumeration (added separate extra enumeration for resu…
Browse files Browse the repository at this point in the history
…lt check).
  • Loading branch information
Athari committed Jun 8, 2015
1 parent 5140491 commit 6036e3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions benchmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function benchmark_operation ($count, $consume, $operation)
if ($consume !== null)
$consume($return);
}
$return = $operation();
if (!is_scalar($return))
$return = E::from($return)->toListDeep();
$result = true;
Expand Down

0 comments on commit 6036e3a

Please sign in to comment.