Skip to content
This repository was archived by the owner on Oct 30, 2020. It is now read-only.

Commit

Permalink
Updates transaction to reset errors array indices
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Paul committed Dec 28, 2016
1 parent 14525af commit 262617c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ public function valid()
];
}

$errors = array_filter($errors);
$errors = array_values(array_filter($errors));
$this->errors = $errors;

return empty($errors);
Expand Down

0 comments on commit 262617c

Please sign in to comment.