5.5 yr old has become super whiney

Has anyone else's 5 yr old become just lainfully whiney? She is still the sweetest girl but gor some reason she has.started whining every single time she doesnt get her way or something goes wrong or she's upset for whatever reason. We ignore the whining and she knows mom and dad can't understand her when she whines and as soon as she stops we talk and she fully understands she doesnt ever get what she wants when she whines...but like can't stop herself. She'll apologize after about it without being prompted at all. How long does the whine phase last...because I hate this phase lol