8000 [Bugfix] Merge pull request #370 from freddy38510/develop · CodingSeo/laravel-json-api@9addb7f · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 9addb7f

Browse files
[Bugfix] Merge pull request cloudcreativity#370 from freddy38510/develop
[Bugfix] Fix wrong returned methods in validators
2 parents aa6192d + a8b4869 commit 9addb7f

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