Skip to content

Commit c208a9b

Browse files
authored
chore: update workflow to include PHP 8.5 (#76)
* chore: update workflow to include PHP 8.5 * update minimal PHP version in composer.json * fix PHPStan errors * fix Rector errors * cs fix
1 parent e5f7dcd commit c208a9b

File tree

13 files changed

+30
-20
lines changed

13 files changed

+30
-20
lines changed

.github/workflows/deptrac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ on:
2020

2121
jobs:
2222
deptrac:
23-
uses: codeigniter4/.github/.github/workflows/deptrac.yml@CI46
23+
uses: codeigniter4/.github/.github/workflows/deptrac.yml@CI47

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
fail-fast: false
2828
matrix:
29-
php-versions: ['8.2', '8.4']
29+
php-versions: ['8.2', '8.5']
3030

3131
steps:
3232
- name: Checkout

.github/workflows/phpunit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
if: "!contains(github.event.head_commit.message, '[ci skip]')"
3939
strategy:
4040
matrix:
41-
php-versions: ['8.2', '8.3', '8.4']
41+
php-versions: ['8.2', '8.3', '8.4', '8.5']
4242
db-platforms: ['MySQLi', 'SQLite3']
4343
include:
4444
# Postgre

.github/workflows/rector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
strategy:
3434
fail-fast: false
3535
matrix:
36-
php-versions: ['8.2', '8.4']
36+
php-versions: ['8.2', '8.5']
3737

3838
steps:
3939
- name: Checkout

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Queues for the CodeIgniter 4 framework.
77
[![Deptrac](https://github.com/codeigniter4/queue/actions/workflows/deptrac.yml/badge.svg)](https://github.com/codeigniter4/queue/actions/workflows/deptrac.yml)
88
[![Coverage Status](https://coveralls.io/repos/github/codeigniter4/queue/badge.svg?branch=develop)](https://coveralls.io/github/codeigniter4/queue?branch=develop)
99

10-
![PHP](https://img.shields.io/badge/PHP-%5E8.1-blue)
10+
![PHP](https://img.shields.io/badge/PHP-%5E8.2-blue)
1111
![CodeIgniter](https://img.shields.io/badge/CodeIgniter-%5E4.3-blue)
1212
![License](https://img.shields.io/badge/License-MIT-blue)
1313

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"homepage": "https://github.com/codeigniter4/queue",
1515
"require": {
16-
"php": "^8.1"
16+
"php": "^8.2"
1717
},
1818
"require-dev": {
1919
"codeigniter4/devkit": "^1.3",

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Listen for queued jobs.
1818

1919
### Requirements
2020

21-
- PHP 8.1+
21+
- PHP 8.2+
2222
- CodeIgniter 4.3+
2323

2424
If you use `database` handler:

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
@@ -71,6 +71,7 @@ public function retry(?int $id, ?string $queue): int
7171
)
7272
->findAll();
7373

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

0 commit comments

Comments
 (0)