Cole Hamels pitched eight scoreless innings, finishing up by retiring Bryce Harper on a grounder as the Philadelphia Phillies snapped a season-long four-game losing streak Wednesday night with a 3-1 victory over the Washington Nationals.

Hamels (7-1) didn't allow a hit until Danny Espinosa doubled with one out in the sixth. The left-hander won his seventh straight decision.

Hamels faced Washington for the first time since intentionally hitting the 19-year-old Harper on May 6. The incident sparked a firestorm, with Hamels earning a five-game suspension and Nationals general manager Mike Rizzo getting fined for his critical comments of Hamels.

Harper singled in the sixth. The Phillies led 3-0 in the eighth when Harper grounded out to end the inning.

Shane Victorino homered, doubled and drove in two runs.

(Copyright 2012 by The Associated Press.  All Rights Reserved.)