File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,8 @@ public function testValidatedMethodReturnsOnlyRequestedNestedValidatedData()
151151
152152 public function testAfterMethod ()
153153 {
154- $ request = new class extends FormRequest {
154+ $ request = new class extends FormRequest
155+ {
155156 public $ value = 'value-from-request ' ;
156157
157158 public function rules ()
@@ -161,7 +162,8 @@ public function rules()
161162
162163 protected function failedValidation (Validator $ validator )
163164 {
164- throw new class ($ validator ) extends Exception {
165+ throw new class ($ validator ) extends Exception
166+ {
165167 public function __construct (public $ validator )
166168 {
167169 //
@@ -202,7 +204,6 @@ public function after(InjectedDependency $dep)
202204 ], $ messages );
203205 }
204206
205-
206207 /**
207208 * Catch the given exception thrown from the executor, and return it.
208209 *
@@ -436,8 +437,8 @@ class InvokableAfterValidationRule
436437{
437438 public function __construct (private $ value )
438439 {
439-
440440 }
441+
441442 public function __invoke ($ validator )
442443 {
443444 $ validator ->errors ()->add ('invokable ' , $ this ->value );
Original file line number Diff line number Diff line change 22
33namespace Illuminate \Tests \Validation ;
44
5- use Illuminate \Container \Container ;
65use Illuminate \Translation \ArrayLoader ;
76use Illuminate \Translation \Translator ;
87use Illuminate \Validation \Validator ;
You can’t perform that action at this time.
0 commit comments