It's not because a politician say something that it's true, you should know better ;).
The reason why governments promote immigration is because they want to increase the workforce (and in the case of Portugal, replace all the emigrants from Portugal). As the population is aging, if you want to keep cheap labor you need new arms to work, no matter who pays for the pensions.
If you have pension funds that invest on the global financial market, then pensions are being paid by workers worldwide through the companies profits. So the amount of money you get for pension can remain or even increase even if your national population collapses.
But the supply of workers needed to provide the basic goods your aging population needs (including healthcare) shrinks and if you don't accept immigrants you end up with labor shortage (Or you raise the salaries for these jobs, but then the rest of your economy disappears because there's no one working there anymore).
The reason why governments promote immigration is because they want to increase the workforce (and in the case of Portugal, replace all the emigrants from Portugal). As the population is aging, if you want to keep cheap labor you need new arms to work, no matter who pays for the pensions.