🤖 Auto commit for release 'develop' on 2025-10-11

This commit is contained in:
JC5
2025-10-11 15:23:33 +02:00
parent d47e4c4f24
commit 78e832cdba
3 changed files with 3 additions and 2 deletions

View File

@@ -43,6 +43,7 @@ class DateRangeRequest extends ApiRequest
// set null values
$this->attributes->set('start', null);
$this->attributes->set('end', null);
return;
}
$start = $this->getCarbonDate('start')?->startOfDay();

View File

@@ -48,7 +48,7 @@ class DateRequest extends ApiRequest
// if we also have a range, date must be in that range
$start = $this->attributes->get('start');
$end = $this->attributes->get('end');
if ($date instanceOf Carbon && $start instanceOf Carbon && $end instanceOf Carbon && !$date->between($start, $end)) {
if ($date instanceof Carbon && $start instanceof Carbon && $end instanceof Carbon && !$date->between($start, $end)) {
$validator->errors()->add('date', (string)trans('validation.between_date'));
}