An EU citizen or a family member who is not an EU citizen who is a spouse of a Polish citizen acquires the right of permanent residence after three years of uninterrupted legal stay (in accordance with the conditions of the right to stay for period longer than 3 months) on the territory of the Republic of Poland.
https://www.gov.pl/web/your-europe/entry-and-residence-rules
An EU citizen or a family member who is not an EU citizen who is a spouse of a Polish citizen acquires the right of permanent residence after three years of uninterrupted legal stay (in accordance with the conditions of the right to stay for period longer than 3 months) on the territory of the Republic of Poland.