Skip to content

Commit f6a8a73

Browse files
authored
Bump Laravel version to 12 (#15)
1 parent 889dfff commit f6a8a73

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

.github/workflows/ci.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ jobs:
8282
php_versions: '8.2'
8383
laravel: '^10.0'
8484
experimental: false
85+
- operating_system: ubuntu-latest
86+
redis_version: '6.0'
87+
php_versions: '8.3'
88+
laravel: '^11.0'
8589
runs-on: '${{ matrix.operating_system }}'
8690
services:
8791
redis:
@@ -144,7 +148,7 @@ jobs:
144148
env:
145149
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
146150
COVERALLS_PARALLEL: true
147-
COVERALLS_FLAG_NAME: php-${{ matrix.php_versions }}-redis-${{ matrix.redis-version }}
151+
COVERALLS_FLAG_NAME: php-${{ matrix.php_versions }}-redis-${{ matrix.redis_version }}
148152
run: ./vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
149153
coverage:
150154
needs: test

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434
"php": "^8.0",
3535
"ext-json": "*",
3636
"ext-redis": "*",
37-
"laravel/framework": "^9.0|^10.0"
37+
"laravel/framework": "^9.0|^10.0|^11.0"
3838
},
3939
"require-dev": {
4040
"umbrellio/code-style-php": "^1.0",
4141
"phpunit/phpunit": "^8.3|^9.0|^10.0",
4242
"php-coveralls/php-coveralls": "^2.1",
4343
"symplify/easy-coding-standard": "^9.3.15",
44-
"orchestra/testbench": "^7.0|^8.0"
44+
"orchestra/testbench": "^7.0|^8.0|^9.0"
4545
},
4646
"scripts": {
4747
"lint": [

src/Decorators/FailedJobProviderDecorator.php

+5
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,9 @@ public function flush($hours = null): void
5555

5656
$this->failedJobProvider->flush($hours);
5757
}
58+
59+
public function ids($queue = null)
60+
{
61+
$this->failedJobProvider->ids($queue);
62+
}
5863
}

tests/_data/Fixtures/FakeFailedJobProvider.php

+8-1
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,20 @@ public function find($id)
3434
return $this->records[$id] ?? null;
3535
}
3636

37-
public function forget($id): void
37+
public function forget($id): bool
3838
{
3939
unset($this->records[$id]);
40+
41+
return !array_keys($this->records, $id, true);
4042
}
4143

4244
public function flush($hours = null): void
4345
{
4446
$this->records = [];
4547
}
48+
49+
public function ids($queue = null)
50+
{
51+
return array_keys($this->records);
52+
}
4653
}

0 commit comments

Comments
 (0)