PHOENIX — A person familiar with the situation tells The Associated Press that the Arizona Diamondbacks and catcher Jeff Mathis have agreed on a two-year, $4 million contract.

The person said the deal was pending a physical and asked not to be identified Saturday because the move had not been officially announced.

The 33-year-old Mathis, a 12-year major league veteran, played the last four seasons as the No. 2 catcher for the Miami Marlins. He hit .238 in 41 games in 2016 with two home runs and 15 RBIs.

The acquisition came as the Diamondbacks decided not to offer a contract to last season's starting catcher, Welington Castillo. Mathis could back up or platoon with Chris Herrmann in Arizona.