File tree 4 files changed +20
-4
lines changed
4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 82
82
php_versions : ' 8.2'
83
83
laravel : ' ^10.0'
84
84
experimental : false
85
+ - operating_system : ubuntu-latest
86
+ redis_version : ' 6.0'
87
+ php_versions : ' 8.3'
88
+ laravel : ' ^11.0'
85
89
runs-on : ' ${{ matrix.operating_system }}'
86
90
services :
87
91
redis :
@@ -144,7 +148,7 @@ jobs:
144
148
env :
145
149
COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
146
150
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 }}
148
152
run : ./vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
149
153
coverage :
150
154
needs : test
Original file line number Diff line number Diff line change 34
34
"php" : " ^8.0" ,
35
35
"ext-json" : " *" ,
36
36
"ext-redis" : " *" ,
37
- "laravel/framework" : " ^9.0|^10.0"
37
+ "laravel/framework" : " ^9.0|^10.0|^11.0 "
38
38
},
39
39
"require-dev" : {
40
40
"umbrellio/code-style-php" : " ^1.0" ,
41
41
"phpunit/phpunit" : " ^8.3|^9.0|^10.0" ,
42
42
"php-coveralls/php-coveralls" : " ^2.1" ,
43
43
"symplify/easy-coding-standard" : " ^9.3.15" ,
44
- "orchestra/testbench" : " ^7.0|^8.0"
44
+ "orchestra/testbench" : " ^7.0|^8.0|^9.0 "
45
45
},
46
46
"scripts" : {
47
47
"lint" : [
Original file line number Diff line number Diff line change @@ -55,4 +55,9 @@ public function flush($hours = null): void
55
55
56
56
$ this ->failedJobProvider ->flush ($ hours );
57
57
}
58
+
59
+ public function ids ($ queue = null )
60
+ {
61
+ $ this ->failedJobProvider ->ids ($ queue );
62
+ }
58
63
}
Original file line number Diff line number Diff line change @@ -34,13 +34,20 @@ public function find($id)
34
34
return $ this ->records [$ id ] ?? null ;
35
35
}
36
36
37
- public function forget ($ id ): void
37
+ public function forget ($ id ): bool
38
38
{
39
39
unset($ this ->records [$ id ]);
40
+
41
+ return !array_keys ($ this ->records , $ id , true );
40
42
}
41
43
42
44
public function flush ($ hours = null ): void
43
45
{
44
46
$ this ->records = [];
45
47
}
48
+
49
+ public function ids ($ queue = null )
50
+ {
51
+ return array_keys ($ this ->records );
52
+ }
46
53
}
You can’t perform that action at this time.
0 commit comments