We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 814d6bc commit 77450b4Copy full SHA for 77450b4
src/Illuminate/Validation/Rules/RequiredIf.php
@@ -2,6 +2,8 @@
2
3
namespace Illuminate\Validation\Rules;
4
5
+use InvalidArgumentException;
6
+
7
class RequiredIf
8
{
9
/**
@@ -22,7 +24,7 @@ public function __construct($condition)
22
24
if (! is_string($condition) && (is_bool($condition) || is_callable($condition))) {
23
25
$this->condition = $condition;
26
} else {
- throw new \InvalidArgumentException("Condition type must be 'callable' or 'bool'.");
27
+ throw new InvalidArgumentException("The provided condition must be a callable or boolean.");
28
}
29
30
0 commit comments