To make the filling: heat the maple syrup, butter, sugar, vanilla and a pinch of salt in a saucepan. Bring to the boil and cook for 1 minute, pour into a bowl to help it cool quickly, stir in the chopped pecans and allow to cool for at least 10 minutes.