Skip to content

Commit c0a46a9

Browse files
committed
Fix queue static analysis types
1 parent 14ffacf commit c0a46a9

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/Model/Table/QueueProcessesTable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ public function status(): array {
242242
->enableHydration(false)
243243
->all()
244244
->toArray();
245+
/** @var array<array{modified: \Cake\I18n\DateTime}> $results */
245246

246247
if (!$results) {
247248
return [];

src/Model/Table/QueuedJobsTable.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ public function createJob(string $jobTask, array|object|null $data = null, array
221221
throw new InvalidArgumentException('createJob() with `unique` requires a `reference` to dedupe on.');
222222
}
223223

224+
/** @var \Queue\Model\Entity\QueuedJob|null $existing */
224225
$existing = $this->find()
225226
->where([
226227
'reference' => $config->getReferenceOrFail(),
@@ -451,6 +452,7 @@ public function getFullStats(?string $jobTask = null): array {
451452
->limit(static::STATS_LIMIT)
452453
->all()
453454
->toArray();
455+
/** @var array<array{created: \DateTime, duration: int|float|null, job_task: string}> $jobs */
454456

455457
$result = [];
456458

0 commit comments

Comments
 (0)