Skip to content

Commit c0c5928

Browse files
committed
fix(jobs): change RevokeUserGrants properties from private to protected
Private typed properties in the abstract parent class are not restored during queue job unserialization, causing "must not be accessed before initialization" errors when the concrete child class is deserialized by the queue worker.
1 parent 4864f50 commit c0c5928

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/Jobs/RevokeUserGrants.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,22 @@ abstract class RevokeUserGrants implements ShouldQueue
3737
/**
3838
* @var int
3939
*/
40-
private int $user_id;
40+
protected int $user_id;
4141

4242
/**
4343
* @var string|null
4444
*/
45-
private ?string $client_id;
45+
protected ?string $client_id;
4646

4747
/**
4848
* @var string
4949
*/
50-
private string $reason;
50+
protected string $reason;
5151

5252
/**
5353
* @var string
5454
*/
55-
private string $client_ip;
55+
protected string $client_ip;
5656

5757
/**
5858
* @param User $user

0 commit comments

Comments
 (0)