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

2022-11-21 Thread Derick Rethans
On 21 November 2022 11:34:10 GMT, Vincent Langlet wrote: >Hi, > >When using json_encode or json_decode with the `JSON_THROW_ON_ERROR` flag, >`JsonException` might be thrown. > >When using `new DateTime('foo')`, a generic `Exception` is thrown. >Incidentally, I wonder why it's not an

[PHP-DEV] Using less generic exceptions for dates

2022-11-21 Thread Vincent Langlet
Hi, When using json_encode or json_decode with the `JSON_THROW_ON_ERROR` flag, `JsonException` might be thrown. When using `new DateTime('foo')`, a generic `Exception` is thrown. Incidentally, I wonder why it's not an `InvalidArgumentException` (but that could be another debate). But my main

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

2022-11-21 Thread Rowan Tommins
On 20/11/2022 13:20, Dan Ackroyd wrote: This is getting quite complicated. I think unless someone makes a strong case for allowing the combination of the two, disallowing them being combined is probably the best choice. I'm inclined to agree. There's going to be a lot to understand and agree