The pastry was stretched to fit the tin
CommonGluten is elastic, and elastic means it returns. Pastry stretched to reach the rim of a tin is held under tension by the tin until heat sets it — and while it is still soft in the early oven, that stored tension pulls the sides back down. Nothing about the formula is wrong; the dough is doing exactly what an elastic material does.
What to change
Lift the pastry into the tin instead of pulling it
Roll larger than needed, drape rather than stretch, and press into the corners by lifting the overhang inward so the pastry settles rather than spans. Trim after baking rather than before if shrinkage has been a recurring problem.
All lined pastry cases.
Trade-off: Uses slightly more pastry, and the trimmings should not simply be re-rolled into the same case.