Preheat the oven to 200°C/390°F, or 180°C fan-forced.
Mix the spinach, ricotta, cheddar, Parmesan, egg, garlic, salt, and pepper in a bowl.
Cut each puff pastry sheet into 9 equal squares.
Generously oil 18 holes across two standard muffin tins.
Press one pastry square lightly into each muffin-tin hole.
Divide the filling between the pastry cups.
Bring the four pastry corners toward the centre and pinch to seal, leaving a little spinach visible.
Brush only the pastry tops lightly with egg yolk.
Bake on the top shelf for 25 minutes, or until deep golden and crisp; the partially filled tin may need about 5 extra minutes.
Rest the puffs for 5 minutes before removing them, then serve warm or at room temperature.