Centre right Government here in Portugal has started doing the same in order to stave off the rise of Chega, a far right party with a former sports commentator as it's twat leader. Foreigners advised to carry residency IDs (mandatory anyway tbh) and even copies of work/rental contracts/ mortgages.