Brad Miller hit a two-run single in the 10th inning to give the Texas Rangers a 2-1 win over the Philadelphia Phillies on Wednesday night.

Marcus Semien doubled and had two hits for the Rangers, who have won a season-high four in a row after sweeping the two-game series with the Phillies.

Nick Castellanos doubled and had three hits for Philadelphia. The Phillies have lost four of five since a four-game winning streak.

Philadelphia’s Zack Wheeler and the Rangers’ Martin Perez each were stellar in starting roles. Matt Bush (1-1) was given the win after getting the final out of the ninth.

Texas’ Adolis Garcia started the extra frame on second base and went to third on Kole Calhoun’s flyout to deep right.

After Mitch Garver walked, pinch-runner Eli White stole second.

Pinch-hitter Nick Solak struck out before Miller lined a 1-0 slider from Brad Hand (1-1) to right to score Garcia and White.

Joe Barlow gave up a run in the bottom of the 10th on Odubel Herrera’s pinch-hit RBI groundout, but got his third save in as many chances.

Wheeler went 7 2/3 innings, giving up six hits and getting seven strikeouts, lowering his ERA to 4.10.

Girardi was loudly booed when he lifted last year’s NL Cy Young runner-up with two outs in the eighth and just 78 pitches.