Cook mushrooms in butter with garlic, thyme, salt, and pepper for 5–6 minutes.
Cut puff pastry into squares and press into muffin tray cups.
Fill with mushrooms and cheese.
Fold edges slightly and brush with beaten egg.
Bake at 200°C (400°F) for 18–22 minutes until golden and crispy.
