1Preheat the air fryer to 180°C (350°F).
2Drain the corn and beans, rinse well under cold water.
3Roll out the puff pastry sheet and place it in a small heatproof dish suitable for the air fryer.
4Mix the corn and beans, spread evenly over the pastry.
5Beat the egg with milk, salt, and pepper, then pour over the corn and beans.
6Fold the pastry edges over the filling to form a pie.
7Place the dish in the air fryer and bake for 15 minutes at 180°C (350°F), until golden and crispy.
8Let the pie cool slightly before serving.