Most phone warranties, even for water resistant phones, don't cover liquid damage.
1. Phones have liquid indicator stickers inside that turn red or pink when wet. Service centres check these.
2. A water resistance rating (IP67 or IP68) is not a promise against water damage.
3. Some insurance or protection plans do cover accidents, including water. Check the papers.
4. For shops: write on the receipt that water damaged repairs get a limited warranty, and why.
If a phone was wet, say so honestly at the service centre. Hiding it wastes time.