Skip to content

Commit

Permalink
Fix deprecation warning due to missing ->all() (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhantomWatson committed Dec 16, 2022
1 parent d4202f0 commit 6eaf1f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Shell/PreviewShell.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function main()
}

$emailQueue = TableRegistry::getTableLocator()->get('EmailQueue', ['className' => EmailQueueTable::class]);
$emails = $emailQueue->find()->where($conditions)->toList();
$emails = $emailQueue->find()->where($conditions)->all()->toList();

if (!$emails) {
$this->out('No emails found');
Expand Down

0 comments on commit 6eaf1f1

Please sign in to comment.