While encoding job data json_encode might return false and that value would be returned as an empty string by serializeJob method.
This is because AbstractQueue is not using script types.
To prevent it JSON_THROW_ON_ERROR flag could be used instead of adding strict type declaration.
While encoding job data
json_encode
might returnfalse
and that value would be returned as an empty string byserializeJob
method. This is becauseAbstractQueue
is not using script types.To prevent it
JSON_THROW_ON_ERROR
flag could be used instead of adding strict type declaration.