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 709f17f commit 45bec5bCopy full SHA for 45bec5b
src/Illuminate/Validation/Rules/RequiredIf.php
@@ -19,7 +19,7 @@ class RequiredIf
19
*/
20
public function __construct($condition)
21
{
22
- if(! is_string($condition) && (is_bool($condition) || is_callable($condition))) {
+ if (! is_string($condition) && (is_bool($condition) || is_callable($condition))) {
23
$this->condition = $condition;
24
} else {
25
throw new InvalidArgumentException("Condition type must be 'callable' or 'bool'.");
0 commit comments