Re: [PHP-DEV] [RFC] Asymmetric Visibility, with readonly

2022-11-22 Thread Tim Düsterhus
Hi On 11/14/22 21:02, Claude Pache wrote: To clarify my position: * The set visibility must be either more restrictive or of the same restriction level than the get visibility. * When the set visibility is absent, it is inferred as following: * If `readonly` is present, the set visibili

Re: [PHP-DEV] Using less generic exceptions for dates

2022-11-22 Thread Tim Düsterhus
Hi On 11/21/22 13:36, Derick Rethans wrote: But my main point is that I think it would be useful to use a specific exception ``` class DateException extends Exception {} ``` - It allows a specific treatment when catching exceptions - It allows a specific analysis when using static analysis tools