Yii2 Cart same item different custom options

I am having a hard time figuring out how to prevent the cart to overwrite the same item with different options.

For example:
I want to buy Product #1 which has a different color variations.

Expected Result:
Product # 1 , Black, 1pcs
Product # 1 , White, 3pcs
Product # 1 , Pink, 4pcs

Product # 1, Pink, 4pcs

My cart is working fine but I need to make a cart like this.
Please help me thanks.

Btw I am using yii2mod/yii2-cart.