Skip to content

Commit

Permalink
fix(exception): correct identifier to previous validation
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Sep 3, 2023
1 parent dd20b9f commit 9866379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Exceptions/InvalidRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct(Validation $ran_validation) {
}

public function serialize(): array {
$raw_errors = $ran_validation->getErrors();
$raw_errors = $this->ran_validation->getErrors();
$formalized_errors = [];
foreach ($raw_errors as $field => $message) {
array_push($formalized_errors, [
Expand Down

0 comments on commit 9866379

Please sign in to comment.