Current ParserOutputAccess accepts either a bitmask of options, or an options array. This adds needless complexity; we should deprecate callers who use the bitmask and accept just the options array.
The problem is that ParsoidCachePrewarmJob and RefreshLinksJob both pass ParserOutputAccess options to jobs, and the jobs framework only allows primitive-valued options. Naively converting these to use the options array breaks the job runner.
We should either upgrade the job runner to accept some non-primitive values (allowing an array of primitive values would be sufficient) or else manually encode the options array (eg as json) and pass the options to the jobs in that form.
See rMW5bd04e0a88451b9d2b731397d8a3c733060d6a6a where the array form was added, rEDTO50eb1e38386af17fa9a52fae67bb5c4b239fd75d (and others) were most clients were converted from the integer form to the array form, and ParserOutputAccess::normalizeOptions() which has a to-do to hard deprecate the bitmask format options "starting in 1.46". T387478 is apparently related too (but it's a security bug which I don't have access to).