Skip to content

Commit e324ced

Browse files
committed
fix PHPStan errors
1 parent 15bc956 commit e324ced

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

phpstan.neon.dist

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ parameters:
1010
ignoreErrors:
1111
-
1212
message: '#Call to method PHPUnit\\Framework\\Assert::assertInstanceOf\(\) with.#'
13-
-
14-
message: '#Call to deprecated function random_string\(\):#'
15-
paths:
16-
- src/Handlers/RedisHandler.php
17-
- src/Handlers/PredisHandler.php
18-
- src/Handlers/RabbitMQHandler.php
1913
-
2014
message: '#Call to an undefined method CodeIgniter\\Queue\\Models\\QueueJobFailedModel::affectedRows\(\).#'
2115
paths:

src/Commands/QueueWork.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,8 @@ private function checkStop(string $queue, float $startTime): bool
492492

493493
/**
494494
* Handle interruption
495+
*
496+
* @phpstan-ignore method.unused
495497
*/
496498
private function onInterruption(int $signal): void
497499
{

src/Handlers/BaseHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public function retry(?int $id, ?string $queue): int
7070
)
7171
->findAll();
7272

73+
/** @var list<QueueJobFailed> $jobs */
7374
foreach ($jobs as $job) {
7475
$this->setPriority($job->priority)->push($job->queue, $job->payload['job'], $job->payload['data']);
7576
$this->forget($job->id);

0 commit comments

Comments
 (0)