8000 [Bugfix] Fix wrong returned methods in validators · CodingSeo/laravel-json-api@a8b4869 · GitHub
[go: up one dir, main page]

Skip to content

Commit a8b4869

Browse files
authored
[Bugfix] Fix wrong returned methods in validators
I think the methods used in return statement were inverted between delete and create requests.
1 parent 32b781d commit a8b4869

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/Validation/AbstractValidators.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -598,12 +598,7 @@ protected function validatorForDelete(
598598
array $customAttributes = []
599599
): ValidatorInterface
600600
{
601-
return $this->createValidator(
602-
$data,
603-
$rules,
604-
$messages,
605-
$customAttributes
606-
);
601+
return $this->factory->createDeleteValidator($data, $rules, $messages, $customAttributes);
607602
}
608603

609604
/**
@@ -622,7 +617,7 @@ protected function createValidator(
622617
array $customAttributes = []
623618
): ValidatorInterface
624619
{
625-
return $this->factory->createDeleteValidator($data, $rules, $messages, $customAttributes);
620+
return $this->factory->createValidator($data, $rules, $messages, $customAttributes);
626621
}
627622

628623
/**

0 commit comments

Comments
 (0)
0