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()
151
151
152
152
public function testAfterMethod ()
153
153
{
154
- $ request = new class extends FormRequest {
154
+ $ request = new class extends FormRequest
155
+ {
155
156
public $ value = 'value-from-request ' ;
156
157
157
158
public function rules ()
@@ -161,7 +162,8 @@ public function rules()
161
162
162
163
protected function failedValidation (Validator $ validator )
163
164
{
164
- throw new class ($ validator ) extends Exception {
165
+ throw new class ($ validator ) extends Exception
166
+ {
165
167
public function __construct (public $ validator )
166
168
{
167
169
//
@@ -202,7 +204,6 @@ public function after(InjectedDependency $dep)
202
204
], $ messages );
203
205
}
204
206
205
-
206
207
/**
207
208
* Catch the given exception thrown from the executor, and return it.
208
209
*
@@ -436,8 +437,8 @@ class InvokableAfterValidationRule
436
437
{
437
438
public function __construct (private $ value )
438
439
{
439
-
440
440
}
441
+
441
442
public function __invoke ($ validator )
442
443
{
443
444
$ validator ->errors ()->add ('invokable ' , $ this ->value );
Original file line number Diff line number Diff line change 2
2
3
3
namespace Illuminate \Tests \Validation ;
4
4
5
- use Illuminate \Container \Container ;
6
5
use Illuminate \Translation \ArrayLoader ;
7
6
use Illuminate \Translation \Translator ;
8
7
use Illuminate \Validation \Validator ;
You can’t perform that action at this time.
0 commit comments