Fix other minor type issues in libs
[MAILPOET-3926]
This commit is contained in:
committed by
Veljko V
parent
82f666c488
commit
d13f63b3e2
@ -19,7 +19,7 @@ class ExportFilesCleanup extends SimpleWorker {
|
||||
$name = $file->getPathname();
|
||||
$created = $file->getMTime();
|
||||
$now = new Carbon();
|
||||
if (Carbon::createFromTimestamp($created)->lessThan($now->subDays(self::DELETE_FILES_AFTER_X_DAYS))) {
|
||||
if (Carbon::createFromTimestamp((int)$created)->lessThan($now->subDays(self::DELETE_FILES_AFTER_X_DAYS))) {
|
||||
unlink($name);
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user