All certificates of nomination and nomination papers to fill a vacancy as herein provided, which have been accepted and filed shall be deemed to be valid, unless objections thereto are duly made in writing and filed in the court and with the officer or board with whom said nomination certificates or papers were filed, and within three (3) days next succeeding the last day for filing such certificates or papers. Any objections shall set forth specifically the matters objected to. Upon the filing of the objections, the court shall make an order fixing a time for hearing, which shall not be later than seven (7) days after the last day for filing nomination certificates or papers, and specifying the time and manner of notice that shall be given to the candidate named in the nomination certificate or paper objected to. On the day fixed for said hearing, the court shall proceed without delay to hear said objections, and shall give such hearing precedence over any other business before it, and shall finally determine said matter not later than twelve (12) days after the last day for filing said nomination certificates or papers. In determining such matter, the court shall be governed in its order or decree by the provisions of section 977 of this act.
25 P.S. § 2782