The Flyers have signed Nolan Patrick, the overall No. 2 selection in this year’s draft, to an entry-level contract.

The deal is for three years and $2.775 million, with an annual salary-cap hit of $925,000, according to CapFriendly.com.

Patrick’s contract is little more than a formality. The 6-foot-2, 198-pound center has been with the team for some time, though he was off the ice during the Flyers’ recent development camp while recovering from hernia surgery. It was the second such surgery of his career, and he played through the injury last season with the Western Hockey League’s Brandon Wheat Kings.

Despite the injury, he tallied 20 goals and 26 assists in 33 games last season for the Wheat Kings. He played three seasons there, recording 92 goals and 113 assists. From 2014 to 2016, he was a teammate of Flyers defenseman Ivan Provorov.

Patrick, 18, could be back to skating later this month. General manager Ron Hextall said recently that he expects Patrick to be a full participant at training camp in September.