Skip to content

Commit c3eff33

Browse files
committed
another test fix
1 parent 634017d commit c3eff33

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Illuminate/Validation/Rules/RequiredIf.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ class RequiredIf
1919
*/
2020
public function __construct($condition)
2121
{
22-
if(!is_string($condition) && (is_bool($condition) || is_callable($condition))) {
22+
if (! is_string($condition) && (is_bool($condition) || is_callable($condition))) {
2323
$this->condition = $condition;
2424
} else {
25-
throw new InvalidArgumentException("Condition type must be 'callable' or 'bool'.");
25+
throw new \InvalidArgumentException("Condition type must be 'callable' or 'bool'.");
2626
}
2727
}
2828

tests/Validation/ValidationRequiredIfTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function testItOnlyCallableAndBooleanAreAcceptableArgumentsOfTheRule()
3636

3737
$rule = new RequiredIf(true);
3838

39-
$this->expectException(InvalidArgumentException::class);
39+
$this->expectException(\InvalidArgumentException::class);
4040

4141
$rule = new RequiredIf('phpinfo');
4242

@@ -47,7 +47,7 @@ public function testItOnlyCallableAndBooleanAreAcceptableArgumentsOfTheRule()
4747

4848
public function testItReturnedRuleIsNotSerializable()
4949
{
50-
$this->expectException(Exception::class);
50+
$this->expectException(\Exception::class);
5151

5252
$rule = serialize(new RequiredIf(function () {
5353
return true;

0 commit comments

Comments
 (0)