File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/Illuminate/Validation/Rules Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ class RequiredIf
19
19
*/
20
20
public function __construct ($ condition )
21
21
{
22
- if (! is_string ($ condition ) && (is_bool ($ condition ) || is_callable ($ condition ))) {
22
+ if (! is_string ($ condition ) && (is_bool ($ condition ) || is_callable ($ condition ))) {
23
23
$ this ->condition = $ condition ;
24
24
} else {
25
- throw new InvalidArgumentException ("Condition type must be 'callable' or 'bool'. " );
25
+ throw new \ InvalidArgumentException ("Condition type must be 'callable' or 'bool'. " );
26
26
}
27
27
}
28
28
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public function testItOnlyCallableAndBooleanAreAcceptableArgumentsOfTheRule()
36
36
37
37
$ rule = new RequiredIf (true );
38
38
39
- $ this ->expectException (InvalidArgumentException::class);
39
+ $ this ->expectException (\ InvalidArgumentException::class);
40
40
41
41
$ rule = new RequiredIf ('phpinfo ' );
42
42
@@ -47,7 +47,7 @@ public function testItOnlyCallableAndBooleanAreAcceptableArgumentsOfTheRule()
47
47
48
48
public function testItReturnedRuleIsNotSerializable ()
49
49
{
50
- $ this ->expectException (Exception::class);
50
+ $ this ->expectException (\ Exception::class);
51
51
52
52
$ rule = serialize (new RequiredIf (function () {
53
53
return true ;
You can’t perform that action at this time.
0 commit comments