Pricking the puff pastry with a fork before baking allows for steam to escape while the mushroom bites bake. Trapped steam is what gives puff pastry its rise, allowing some to escape controls the rise so the bites remain a manageable size and shape.