Auto commit for release 'develop' on 2025-01-26

This commit is contained in:
github-actions
2025-01-26 14:33:19 +01:00
parent 8a6eaad2bb
commit 5e15747a5b
35 changed files with 609 additions and 612 deletions

View File

@@ -38,7 +38,7 @@ class IsValidPositiveAmount implements ValidationRule
*/
public function validate(string $attribute, mixed $value, \Closure $fail): void
{
if(is_array($value)) {
if (is_array($value)) {
$fail('validation.numeric')->translate();
$message = sprintf('IsValidPositiveAmount: "%s" is not a number.', json_encode($value));
Log::debug($message);

View File

@@ -79,11 +79,12 @@ class UniqueAccountNumber implements ValidationRule
if (null === $this->expectedType) {
return;
}
if(is_array($value)) {
if (is_array($value)) {
$fail('validation.generic_invalid')->translate();
return;
}
$value = (string) $value;
$value = (string) $value;
$maxCounts = $this->getMaxOccurrences();
foreach ($maxCounts as $type => $max) {

View File

@@ -94,10 +94,10 @@ class UniqueIban implements ValidationRule
if (0 === count($this->expectedTypes)) {
return true;
}
if(is_array($value)) {
if (is_array($value)) {
return false;
}
$value = (string) $value;
$value = (string) $value;
$maxCounts = $this->getMaxOccurrences();
foreach ($maxCounts as $type => $max) {