Skip to content

Commit 6eaf1f1

Browse files
Fix deprecation warning due to missing ->all() (#48)
1 parent d4202f0 commit 6eaf1f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Shell/PreviewShell.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function main()
2626
}
2727

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

3131
if (!$emails) {
3232
$this->out('No emails found');

0 commit comments

Comments
 (0)