If the version method is called, the replace will die loudlyWouldn't it be $override->version() that dies loudly?
In answer to your question, except for my confusion above, yes, this strikes me as a nicely balanced solution for the many cases where it isn't easy or reliable to detect the specific flaw.
In reply to Re: Upgrade-proofing overridden subroutines
by rodion
in thread Upgrade-proofing overridden subroutines
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |