Routabout (and Woody) I disagree with the below.
The spray foam is in the wrong place, assuming the rock wool or fiberglass is unfaced. Here's why. The warm air, laden with moisture, passes through the interior wall and meets the insulation. As the air makes it's way through the insulation, toward the outside wall, it cools and loses it's ability to hold moisture - dropping some of it's moisture into the insulation. When it finally hits the spray foam, the moisture cannot pass, and is left in the wall cavity that exists between the spray foam and the interior wall.
If the fiberglass (or rock wool) is faced, still, some moisture laden air will get through. That air will get into the envelope that exists between the faced fiberglass and the spray foam and then can't evaporate away. Important to only have one vapor barrier in a wall.
To use bats of fiberglass AND spray foam, better to put the bats into the wall first (closest to outside wall). THEN spray the foam over the insulation - closest to the interior wall.
To digress a bit and tell you a situation I have.
My recently purchased 1918 farm house has a wet basement. The living room had an oak floor installed over the pine floor. To avoid squeaks, tar paper was put down between the pine and the oak - creating a vapor barrier. So moist humid air rises from the basement, works it's way between the cracks of the pine floor, and hits the tar paper where moisture is stopped.
I'll be removing the oak floor (it's urine stained, anyway), remove the tar paper, have the basement ceiling spray foamed, and will refinish the pine floor. I'll also be treating the adzed oak beams with insecticide to kill the dust beetles - doing that before the spray foam.