Hi
On 4/17/25 23:14, Paul M. Jones wrote:
On 4/17/25 22:47, Paul M. Jones wrote:
As such, the _InvalidUriException_ would better extend from _LogicException_.
No. There is a de facto policy of “not using SPL exceptions in new code”. The
replacement for LogicException is the Error hierarchy.
Ah so -- I was not aware. I retract the comment, and thanks for the correction.
Yes, we absolutely should make this an official policy in the new-ish
policies repository (https://github.com/php/policies) to give folks an
official resource to reference and hopefully making it easier for RFC
authors to make the “correct choice” without someone needing to remember
the existing gentleman’s agreement.
I've put writing such a policy RFC onto my TODO list to handle when I
have the time.
Best regards
Tim Düsterhus