Moved from NJ to Philly for less than month and moved back to NJ in same month. Job notified of move, so paid tax to Philly

Paid tax to PA for 1 paycheck. How to file? Should I file a return w/ PA as nonresident and a return w/ NJ as full yr resident? Is reciprocal agreement at play here? Workplace was in NJ.