24 Pa.C.S. § 8310
Eligibility for refunds
Upon termination of service any active member, regardless of eligibility for benefits, may elect to receive his accumulated deductions by his required beginning date in lieu of any benefit from the system to which he is entitled. (Dec. 28, 2015, P.L.529, No.93, eff. imd.; June 12, 2017, P.L.11, No.5, eff. imd.)