A person domiciled outside Pennsylvania may become a statutory resident by maintaining a permanent abode in Pennsylvania and spending more than 183 days, measured midnight to midnight, there during the taxable year. This rule tracks only the day count; verify the permanent-abode condition separately.
https://www.pa.gov/agencies/revenue/forms-and-publications/pa-personal-income-tax-guide/brief-overview-and-filing-requirements