mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-16 19:07:48 +00:00
Fix phpstan issues
This commit is contained in:
@@ -31,6 +31,8 @@ final readonly class RemoveOldAuditCronJob implements CronJobInterface
|
||||
$config = $bag->get('chill_main.audit_trail');
|
||||
if (is_array($config) && is_string($intervalString = $config['delete_after'] ?? null)) {
|
||||
$this->deleteBefore = new \DateInterval($intervalString);
|
||||
} else {
|
||||
throw new \InvalidArgumentException('Invalid configuration for delete_after interval');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user