PHP-061 / Advanced
Serializing sensitive information into queue-job payloads
Why is this a problem?
People with access to Redis or the DB job table can read passwords and tokens.
How to fix it
php
ProcessPayment::dispatch($user->id, $paymentId); // Pass only IDs and retrieve again in the job