WARSAW (Reuters) - Poland’s interior minister is recommending Warsaw quits a U.N. migration pact before its final approval as it may encourage more illegal migrants, the ministry said on Tuesday.

FILE PHOTO: Joachim Brudzinski, minister of internal affairs, attends a government swearing-in ceremony at the Presidential Palace in Warsaw, Poland January 9, 2018. REUTERS/Kacper Pempel/File Photo

Hungary has already announced it will not sign up to the Global Compact For Safe, Orderly and Regular Migration, which was approved in July by all 193 U.N. member nations except the United States, which pulled out last year.

The pact, due to be adopted in December, addresses issues including why people migrate, how to protect them and how to integrate them into new countries.

Poland, along with Hungary and Czech Republic, has taken a tough stand against resettling migrants, putting it at odds with the European Union, but striking a chord with voters by arguing that irregular immigration threatens European stability.

“I will recommend to Prime Minister Mateusz Morawiecki to opt out from the Global Compact (GCM) deal, which is due to be signed in December in Marrakech,” Joachim Brudzinski was quoted by the Interior Ministry Twitter feed as saying.

“In our opinion the draft of the agreement does not guarantee Poland’s safety. It may also encourage illegal immigration.”

The government’s press office had no immediate comment on the recommendation.

Brudzinski was speaking at the G6 summit in Lyon, France, where he met his Italian counterpart Matteo Salvini, among others, the ministry tweeted. Brudzinski retweeted the Tweet.

Poland’s ruling nationalist Law and Justice (PiS) party built its 2015 parliamentary election landslide victory in part on kindling the fear of migrants. That year, Europe saw the biggest influx of refugees and migrants since World War Two.

Nonetheless, Poland, with a population of 38-million people and record low unemployment of 5.8 percent, has taken in a large influx of foreign workers, mainly from Ukraine, but also from Belarus and parts of Asia, as the fast developing economy struggles with a lack of workers.