mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
Auto commit for release 'develop' on 2025-01-26
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user