I'm learning the use of なる with adjectives/nouns in my textbook. I was given two examples and in both the particle が was used.
ex.1 にほんごのべんきょうがすきになりました。
I have grown fond of studying Japanese.ex.2 にほんごのべんきょうがたのしくなりました。
studying the Japanese language is fun now (though it was like torture before).
Due to the first example having the な adjective すきな in it, I came to the conclusion that が here was used to mark the object in this sentence. Since in an earlier chapter I was taught to use が with すきな and きらいな. The general sentences of both examples also look at extremely similar leading me to believe that the が particles used in both sentences might be the same, but I don't want to throw them into the same category based on that alone and was never taught to use が with other adjectives like たのしい. Which leaves me uncertain as to why が was used in the second example. In my textbook I found an example similar to the second although this one takes the topic marker は instead.
にほんごのべんきょうはたのしいです
Japanese language study is fun
This really only confuses me even more as to why が was used in the second example. Any explanation as to why が was used in these two examples is really appreciated.
Admittedly I did ask a similar question to this one a few days ago, but not wanting to waste other people's time and thinking I figured it out on my own I foolishly deleted the question. Apologies for that, and for wasting the time of people who read my question the first time I made it.