On Sun, 14 Mar 2021 at 18:09, Rowan Tommins <rowan.coll...@gmail.com> wrote:

> Are you saying that having the parent::getSomeInt() call fail would be
> problematic?
>
>
 Yes, that's where this becomes unsound – you can call the child method
statically, but the parent call assumes a dynamic instance.

This is just my perspective (as someone building a tool that helps prevent
people from shooting themselves in the foot), but PHP should not allow
_more_ unsound behaviour than it already does.

Best wishes,

Matt

Reply via email to