The Phillies have agreed to a one-year deal with right-handed starting pitcher A.J. Burnett, a source confirmed Wednesday.

The Phillies, who had been thin in the rotation, had targeted Burnett for weeks. The need for a starting pitcher increased on Wednesday when Cole Hamels announced he wouldn't be ready for opening day because of shoulder discomfort.

Burnett was 26-21 with a 3.41 ERA for the Pirates the last two seasons. The 37-year-old led the NL with 9.8 strikeouts per nine innings last season, and since 2012 has the majors' second-highest groundball rate.