Skip to content

Commit 77450b4

Browse files
committed
formatting
1 parent 814d6bc commit 77450b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Illuminate/Validation/Rules/RequiredIf.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Illuminate\Validation\Rules;
44

5+
use InvalidArgumentException;
6+
57
class RequiredIf
68
{
79
/**
@@ -22,7 +24,7 @@ public function __construct($condition)
2224
if (! is_string($condition) && (is_bool($condition) || is_callable($condition))) {
2325
$this->condition = $condition;
2426
} else {
25-
throw new \InvalidArgumentException("Condition type must be 'callable' or 'bool'.");
27+
throw new InvalidArgumentException("The provided condition must be a callable or boolean.");
2628
}
2729
}
2830

0 commit comments

Comments
 (0)