At least in Poland this is not so obvious since to be a tax resident
any of 2 things have to apply:
1) you stayed longer than 6 months there
2) Poland is the "center of your life"
Generally the second one is quite abstract and is mostly tested in court and generally the less connection you have in Poland the more likely you are not considered as Poland being the center of your life such as:
- not having company there
- not having family (wife, kids) there
- not having most investments there
- not visiting regularly
- not having any income from there
however still you can e.g. have a bank account or own flat that you rent there and still not considered to be a tax resident, probably you would have to prove that there is other country that is center of your life (e.g. paying taxes there, staying more than 6 months, having wife/kids living there, etc.)
What's gets very unclear what happens if someone doesn't have any "center of their life" anywhere - e.g. someone keep travelling for many years and every 2-3 months switching countries, living on the boat. After all e.g. 'donuts' don't have any center that belongs to them.