The Constitution gives the state legislatures that power, not a judge.
GP and Jim Hoft again...no surprise.
Evidently PA congress gave up their power to choose electors via legislation. However they can’t usurp the constitution via anything but an amendment any more than the SOS/BOE/Governor can usurp them by changing how people vote.
PA is just a mess.