Skip to content

Commit

Permalink
Merge pull request #32 from dutchenkoOleg/master
Browse files Browse the repository at this point in the history
fix _getNonRepeatingId
  • Loading branch information
OlehDutchenko committed May 25, 2019
2 parents 6aeb69a + a9b3af7 commit 893f5d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WezomAgency/R2D2.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected function _getNonRepeatingId($id, $number = null)
{
$key = $id . ($number ? '-' . $number : '');
if (isset($this->idCache[$key])) {
return $this->getNonRepeatingId($id, ($number ? ++$number : 1));
return $this->_getNonRepeatingId($id, ($number ? ++$number : 1));
}
$this->idCache[$key] = 1;
return $key;
Expand Down

0 comments on commit 893f5d0

Please sign in to comment.