 At the end of the campaign Whelan's contract was not renewed by Dean Smith.On 14 August 2019, Whelan joined Scottish Premiership side Heart of Midlothian on a one-year contract.He left the club in January 2020, after new manager Daniel Stendel had dropped him from the team.