I thought they meant this law but wasn't sure. That treaty has not been ratified by the US, Pissrael and most importantly, Iran! So it doesn't apply and we are talking about a war where neither the invading nations nor the victim nation has signed it. https://www.simplelaw.blog/p/the-strait-of-hormuz-a-3-minute-international