|
@@ -27,7 +27,7 @@ discard block |
|
|
block discarded – undo |
|
27
|
27
|
return $this->ruleSets[] = ValidationSet::forField($field); |
|
28
|
28
|
} |
|
29
|
29
|
|
|
30
|
|
- public function field(string $field, Validation|ValidationSet ...$rules): self |
|
|
30
|
+ public function field(string $field, Validation | ValidationSet ...$rules): self |
|
31
|
31
|
{ |
|
32
|
32
|
$this->ruleSet($field)->add(...$rules); |
|
33
|
33
|
return $this; |
|
@@ -112,7 +112,7 @@ discard block |
|
|
block discarded – undo |
|
112
|
112
|
* @return static |
|
113
|
113
|
* @throws ReflectionException if the class does not exist |
|
114
|
114
|
*/ |
|
115
|
|
- public static function fromProperties(string|object $objectOrClass, ?int $filter = null): self |
|
|
115
|
+ public static function fromProperties(string | object $objectOrClass, ?int $filter = null): self |
|
116
|
116
|
{ |
|
117
|
117
|
$instance = new self; |
|
118
|
118
|
$instance->ruleSets = ValidationSet::fromProperties($objectOrClass, $filter); |
Please login to merge, or discard this patch.