Before getting started, pre-heat your oven to 350ºF, and grease a 9x13 baking dish with nonstick cooking spray.
Start by melting the butter in a large skillet over low to medium heat.
Sauté the garlic and mushrooms in the melted butter for about 4-5 minutes, or 'til softened.
Once softened, sprinkle the flour and thyme over the mushrooms, stirring 'til well combined.
Next, add the chicken broth and milk to the mushroom mixture, whisking 'til the mushroom mixture thickens, usually 3-5 minutes.
Finally whisk in the salt and pepper. I recommend taste testing the mixture after this step so that you can add more salt if needed.
Now you can use a rubber spatula to mix the creamy mushroom sauce with all of the green beans and 1/2 of the fried onions in a large mixing bowl.
Next, use the same spatula to spread your green bean casserole mixture into the 9x13 baking dish that you greased up in the first step.
Bake your green bean casserole at 350ºF for 10-15 minutes, or 'til hot and bubbly in the center. Remove from the oven and top it off with the remaining French fried onions that you saved back earlier.
That's it! Let it cool for a few minutes before serving.