No technology has security meant for the future. There is no guarantee for any language. So never believe in doomsday prediction of any skills in the IT. Just pay attention to how the MNCs phase out any tool or the language for their work. That's what affect the work.
Companies that work in some specific technology continue to evolve with the language. Few things you do have to be careful with though.
1. PHP is low paid language compared to .Net and Java stack. Yes, that's true so unless you're desperate for immediate job, avoid going into PHP stack.
2. Data science is fad. It is highly paid skill now but it won't be in future. Jobs will still be there. However considering math involved and only MNC affording Data science jobs, you can't think of using this skill for small scale companies.
3. Tools come and go. So make sure don't bet your career on it. However do note that some tools like Excel, Quickbooks, QTP etc remain in market as they evolve. So you get the idea never to rely on the tool but just use them as you evolve.
I suggest finding out the demanding skills in MNC and then taking the skills for your career. That's how you should plan. And be ready to switch the language and tools as necessary. Be flexible. As being flexible keeps you employed the most.