Pennsylvania constitution
Article V: the judiciary
Section 25

Until otherwise provided by law, the parties, by agreement filed, may in any civil case dispense with trial by jury, and submit the decision of such case to the court having jurisdiction thereof, and such court shall hear and determine the same; and the judgment thereon shall be subject to writ of error as in other cases.