Skip to content

Commit 0811fa8

Browse files
committed
Remove stale queue results annotation
1 parent c0a46a9 commit 0811fa8

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

src/Model/Table/QueueProcessesTable.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,12 @@ public function status(): array {
236236
$timeout = Config::defaultworkertimeout();
237237
$thresholdTime = (new DateTime())->subSeconds($timeout);
238238

239-
$results = $this->find()
240-
->where(['modified >' => $thresholdTime])
241-
->orderByDesc('modified')
242-
->enableHydration(false)
243-
->all()
244-
->toArray();
245-
/** @var array<array{modified: \Cake\I18n\DateTime}> $results */
239+
$results = $this->find()
240+
->where(['modified >' => $thresholdTime])
241+
->orderByDesc('modified')
242+
->enableHydration(false)
243+
->all()
244+
->toArray();
246245

247246
if (!$results) {
248247
return [];

0 commit comments

Comments
 (0)