Skip to content

Commit 0fc01c1

Browse files
authored
Adjust rules call sequence (#50084)
1 parent 84e7f85 commit 0fc01c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Illuminate/Foundation/Http/FormRequest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,11 @@ protected function getValidatorInstance()
115115
*/
116116
protected function createDefaultValidator(ValidationFactory $factory)
117117
{
118+
$rules = $this->validationRules();
119+
118120
$validator = $factory->make(
119121
$this->validationData(),
120-
$this->validationRules(),
122+
$rules,
121123
$this->messages(),
122124
$this->attributes(),
123125
)->stopOnFirstFailure($this->stopOnFirstFailure);

0 commit comments

Comments
 (0)