TORONTO — Freddy Galvis and the Toronto Blue Jays have agreed to a $5 million, one-year contract.

The deal announced Tuesday includes a $4 million salary this year and a $5.5 million club option for 2020 with a $1 million buyout.

Galvis, who can earn additional award bonuses, took a cut from his $6,825,000 salary in 2018.

With six seasons under his belt, Galvis was the Phillies' longest tenured player before being traded to the San Diego Padres in December 2017.

He hit .248 with 31 doubles, five triples and 13 homers last year, playing in all 162 games for the second straight season. The 29-year-old has a .246 average with 65 homers and 300 RBIs in seven big league seasons.

“There were a lot of good memories,” Galvis said at the time. “It was weird to pass the door for the clubhouse and keep walking, but it’s a good feeling. … Every time I come here, it’s going to be a special moment for me.”

Toronto opened a roster spot by designating right-handed reliever Danny Barnes for assignment.