Beware, though, because in other fields - particularly in STEM - a PHD may actually lower your job prospects. "You're overqualified" gets old really fast if no one offers jobs that align with your proficiency level.
Do you see this happening in CS? I've seen positions where they don't care if you have formal training or not, then why would being a PhD holder hinder your chances?
Channelling my inner HR drone here, but I've heard that all at different times from them when looking for talent:
Because why would you linger around in university if you can have a serious income ten years earlier? Obviously something must be "wrong" with you, something that would make you a complicated employee that just asks for creating trouble. Better hire a CS bachelor for a third of what you would ask (risking you'd run as soon as you get some offer more to your liking), not like we're doing any revolutionary bleeding-edge stuff anyways.