Changed Residency

My permanent address is in Pennsylvania, and I work in Maryland. I accidentally changed my permanent address to a MD address (school housing), but changed back to PA 2 pay periods later. I assume I will need to file with both states, but does anyone know how this situation would work?