� 1 John Flannery appeals from the trial court’s order granting John Stump’s motion for summary judgment and barring Flannery from asserting any rights to a disputed parcel of land. Flannery argues that the trial court erred in concluding that Stump has superior title to the disputed parcel by adverse possession. After review, we conclude that the trial court erred as a matter of law. Accordingly, we reverse the trial court’s order.
� 2 This case arises from a dispute between adjacent landowners over a parcel of land situated in Penn Township, Berks County. Sometime in 1963, Stump leased and farmed land then owned by Kathryn Kline. In addition to the land leased to him, Stump made use of a rectangular piece of property adjacent to Kline’s. In December 1979, Stump purchased Kline’s property. In addition to the land that he purchased from Kline, Stump continued to farm a portion of the adjacent land. Sometime in 1986, Flannery purchased property adjoining Stump’s. Included within Flannery’s property is the rectangular parcel of land then being farmed by Stump. In August 1996, Flannery filed an action in declaratory judgment seeking a court order declaring him the legal owner of the disputed parcel and ejecting Stump from the same. Stump filed an answer and counterclaim asserting his right to the property under the doctrine of adverse possession. After pursuing discovery, which included the taking of the depositions of both parties, Flannery filed a motion for summary judgment, which the trial court denied. The parties entered into a stipulation of facts and, thereafter, Flannery filed a motion for reconsideration of summary judgment. Stump filed a responsive brief and a cross-motion seeking summary judgment on the basis that he had legal title to the land by adverse possession. The trial court dismissed Flannery’s motion and entered an order granting summary judgment in Stump’s favor. Flannery then filed this appeal.
� 3 Our scope of review of a trial court’s grant of summary judgment is plenary. Pappas v. Asbel, 768 A.2d 353, 356 (Pa. 2001); Davis v. Resources for Human Development, Inc., 770 A.2d 353, 356 (Pa. Super. 2001). Summary judgment is proper where the pleadings, depositions, answers to interrogatories, admissions and affidavits and other materials demonstrate that there is no genuine issue of material fact and the moving party is entitled to judgment as a matter of law. See Davis, supra, at 356-357 (quoting Hoffman v. Pellak, 764 A.2d 64, 65-66 (Pa. Super. 2000)); see Pa.R.C.P. 1035.1-1035.5. We apply the same standard of review as the trial court in that we view the record in the light most favorable to the party opposing the motion and resolve all doubts as to the existence of a genuine issue of material fact in favor of the nonmoving party. See Wendler v. Design Decorators, Inc., 768 A.2d 1172 (Pa. Super. 2001). However, we are mindful that in this case both parties have moved for summary judgment. We will reverse the trial court’s grant of summary judgment only upon an abuse of discretion or error of law. See Pappas, supra, at 1095.