From 4bb44a8d1a4c95a9a486fc06b29ae8b5167649a3 Mon Sep 17 00:00:00 2001 From: FreeScout Date: Mon, 16 May 2022 06:55:21 -0700 Subject: [PATCH] Fix Call to a member function sortBy() on array on fetching emails - closes #1984 --- app/Console/Commands/FetchEmails.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/FetchEmails.php b/app/Console/Commands/FetchEmails.php index 48d203741..70e5e6422 100644 --- a/app/Console/Commands/FetchEmails.php +++ b/app/Console/Commands/FetchEmails.php @@ -209,7 +209,7 @@ public function fetch($mailbox) } else { $this->error('['.date('Y-m-d H:i:s').'] '.$last_error); $this->logError('Folder: '.$folder->name.'; Error: '.$last_error); - $messages = []; + $messages = collect([]); } }