Preheat oven to 430°F (220°C).
Soak dried mushrooms in veggie broth.
Trim the green beans, cook in boiling salt water until fork-tender (6-10 minutes). Once they are done, drain, rinse with cold water (to stop the cooking process) and set aside.
In a large pan, heat some olive oil over medium heat.
Add onion and fry until translucent and golden brown. Then add garlic and the mushrooms and fry until mushrooms have released almost all their water.
Remove the mushrooms from the pan.
Add the flour and toast until flour is slightly brown.
Pour in milk in 2 batches while constantly whisking to avoid clumps.
Let simmer for 2-3 minutes on low heat until the sauce has thickend.
Transfer to a blender, add soaked mushrooms, parmesan (or nutritional yeast), salt and pepper and Italian herbs. Blend until smooth.
Transfer the mix to a baking dish, together with the cooked green beans and mushrooms. Give it a good stir (see step-by-step photos). Sprinkle with more parmesan and walnuts (optional) and bake for 15 minutes.