@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | return $this; |
49 | 49 | } |
50 | 50 | |
51 | - public function validate(mixed $input, array $context = []): ValidationResult|ValidationResultByField |
|
51 | + public function validate(mixed $input, array $context = []): ValidationResult | ValidationResultByField |
|
52 | 52 | { |
53 | 53 | $violations = $this->newEmptyValidationResult(); |
54 | 54 | foreach ($this->rules as $constraint) { |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * @return ValidationSet[] |
90 | 90 | * @throws ReflectionException if the class does not exist |
91 | 91 | */ |
92 | - public static function fromProperties(string|object $objectOrClass, ?int $filter = null): array |
|
92 | + public static function fromProperties(string | object $objectOrClass, ?int $filter = null): array |
|
93 | 93 | { |
94 | 94 | $ruleSets = []; |
95 | 95 | foreach ((new ReflectionClass($objectOrClass))->getProperties($filter) as $property) { |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * @return ValidationSet[] |
106 | 106 | * @throws ReflectionException |
107 | 107 | */ |
108 | - public static function fromMethods(string|object $objectOrClass, ?int $filter = null): array |
|
108 | + public static function fromMethods(string | object $objectOrClass, ?int $filter = null): array |
|
109 | 109 | { |
110 | 110 | $ruleSets = []; |
111 | 111 | foreach ((new ReflectionClass($objectOrClass))->getMethods($filter) as $method) { |
@@ -121,12 +121,12 @@ discard block |
||
121 | 121 | * @return static |
122 | 122 | * @throws ReflectionException if the class or property does not exist. |
123 | 123 | */ |
124 | - public static function fromProperty(string|object $objectOrClass, string $property): self |
|
124 | + public static function fromProperty(string | object $objectOrClass, string $property): self |
|
125 | 125 | { |
126 | 126 | return self::fromReflectionProperty(new ReflectionProperty($objectOrClass, $property)); |
127 | 127 | } |
128 | 128 | |
129 | - public static function fromMethod(string|object $objectOrClass, string $method): self |
|
129 | + public static function fromMethod(string | object $objectOrClass, string $method): self |
|
130 | 130 | { |
131 | 131 | return self::fromReflectionMethod(new ReflectionMethod($objectOrClass, $method)); |
132 | 132 | } |