The Phillies, a year after neglecting to add a starting pitcher, have appeared to learn from their misstep. They agreed to terms Wednesday with former Mets right-hander Zack Wheeler on a five-year, $118 million contract, a source confirmed, to begin an offseason that focuses on their rotation.

