On Mon, Aug 31, 2026, at 11:05, Tim Düsterhus wrote: > > This will throw an error for octdec, hexdec, bindec and base_convert on > > invalid input. > > I'm not sure ValueError is the correct throwable to use here ... It should > thus > use something from the Exception hierarchy.
I am considering this. Would it be InvalidCharForNumberBaseException extends Exception, or should it be more hierarchical (InvalidCharForNumberBaseException extends ValueException extends RuntimeException extends Exception)? RangeException from SPL seems useful, but we can't use that because it is in another extension, right? Regards, Sjoerd Langkemper
