Of course, we don't need to use it in PHP. I get that Java needs interfaces to increase the flexibility. However you can achieve the stricter and more flexibile approach in PHP even if it's not required.
functionshowPerson(PersonInterface$person):void{}
Or go about it dynamically ...
functionshowPerson($person){}
I certainly wouldn't call PHP "weak". It does allowed for strict type hinting. However it's not required.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Of course, we don't need to use it in PHP. I get that Java needs interfaces to increase the flexibility. However you can achieve the stricter and more flexibile approach in PHP even if it's not required.
Or go about it dynamically ...
I certainly wouldn't call PHP "weak". It does allowed for strict type hinting. However it's not required.