Heat the oven to 200°C/390°F, or 180°C fan-forced.
Mix the spinach, ricotta, cheddar, Parmesan, egg, garlic, salt, and pepper until evenly combined.
Cut each pastry sheet into 9 equal squares for 18 squares total.
Oil 18 muffin-tin wells and press one pastry square into each well.
Divide the filling among the pastry cups without overfilling.
Bring the four pastry corners toward the center and pinch them together, leaving a little filling visible.
Brush the pastry tops lightly with egg yolk.
Bake for about 25 minutes, adding up to 5 minutes for the less-full tin, until deep golden and crisp.
Rest for 5 minutes before lifting the puffs from the tin; serve warm or at room temperature.