|
@@ -41,7 +41,7 @@ discard block |
|
|
block discarded – undo |
|
41
|
41
|
return true; |
|
42
|
42
|
} |
|
43
|
43
|
|
|
44
|
|
- private function check(UploadedFileInterface|false $value, Ruleable $element): bool |
|
|
44
|
+ private function check(UploadedFileInterface | false $value, Ruleable $element): bool |
|
45
|
45
|
{ |
|
46
|
46
|
/** @var array|scalar $options */ |
|
47
|
47
|
foreach ($this->params as $rule => $options) { |
|
@@ -57,7 +57,7 @@ discard block |
|
|
block discarded – undo |
|
57
|
57
|
/** @var class-string<UploadCheckInterface> $className */ |
|
58
|
58
|
Assert::classExists($className, sprintf('Unknown Check Upload: [%s]', $className)); |
|
59
|
59
|
|
|
60
|
|
- if ((new $className($value, $element, ...(array)$options))->check() === false) { |
|
|
60
|
+ if ((new $className($value, $element, ...(array) $options))->check() === false) { |
|
61
|
61
|
return false; |
|
62
|
62
|
} |
|
63
|
63
|
} |
Please login to merge, or discard this patch.