Skip to content

Commit 7179952

Browse files
Upgrade the versions of phpstan and rector.
Co-authored-by: 李铭昕 <[email protected]>
1 parent 50372be commit 7179952

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Job.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function getMaxAttempts(): int
3838

3939
public function uncompress(): static
4040
{
41-
foreach ($this as $key => $value) {
41+
foreach (get_object_vars($this) as $key => $value) {
4242
if ($value instanceof UnCompressInterface) {
4343
$this->{$key} = $value->uncompress();
4444
}
@@ -49,7 +49,7 @@ public function uncompress(): static
4949

5050
public function compress(): static
5151
{
52-
foreach ($this as $key => $value) {
52+
foreach (get_object_vars($this) as $key => $value) {
5353
if ($value instanceof CompressInterface) {
5454
$this->{$key} = $value->compress();
5555
}

0 commit comments

Comments
 (0)