Earned one paycheck in NY and lived in PA full year

I moved from NY to PA. My PA residency started on 01/01/2019. My employer was informed of my move to PA. Because employer's payroll is one week behind, I received a paycheck on 01/04/2019 that was all attributed to NY. Thus, I received two W2 forms from the same employer, which are identical except for box 15-17. Box 20 shows New York, NY resident on both W2 forms. I need to file non-resident NY and resident PA. How can I properly allocate the wage for both states? I prep NY state first and allocate percentage of the total wage in box 1 to match the box 18. Is that the correct approach? Then, what should I do for PA? TurboTax takes both PA and NY wages shown in box 1 (which doubles the wage) and it says I'm due taxes to PA. Please help. Thank you in advance!