[PHP-DEV] Follow up of DateTimeException RFC

2024-06-12 Thread Vincent Langlet
Hi, There was an RFC about more appropriate date exceptions https://wiki.php.net/rfc/datetime-exceptions implemented in https://github.com/php/php-src/commit/66a1a911f1d6cd4b89c0bb5577fa77f1d6a2cb96 Looking at PHP example, it updated method return types like - Datetime::modify - DatetimeImmutable

Re: [PHP-DEV] [RFC] [discussion] Correctly name the rounding mode and make it an Enum

2024-06-12 Thread Gina P. Banyard
On Tuesday, 11 June 2024 at 20:47, Tim Düsterhus wrote: > Hi > > Am 2024-06-08 02:29, schrieb Saki Takamachi: > > > Regarding 1, personally, I support Gina's opinion of only providing > > the new rounding modes as an Enum. > > This can be interpreted as changing the rounding mode to Enum, with

Re: [PHP-DEV] Property hooks, and &get-only write behavior

2024-06-12 Thread Gina P. Banyard
On Wednesday, 12 June 2024 at 16:06, Ilija Tovilo wrote: > Hi everyone > > [...] > > I hope that these semantics are acceptable for everyone. > > Ilija Hello Ilija, I might know what sort of technical issues you've been running into, as I have some similar issues correctly handling referen

Re: [PHP-DEV] Revisiting case-sensitivity in PHP

2024-06-12 Thread Gina P. Banyard
On Tuesday, 11 June 2024 at 15:38, Valentin Udaltsov wrote: > Hi, Ben and Levi! Thank you for your interest! > > Could you, please, elaborate on why you propose to target 9.0? That would > make perfect sense if PHP strictly followed semver, but we always have some > BC breaks in minor releases

[PHP-DEV] Property hooks, and &get-only write behavior

2024-06-12 Thread Ilija Tovilo
Hi everyone While reviewing the property hooks patch, Bob found a discrepancy in the implementation and the specification. There is an unfortunate mistake in one of the examples that suggests specific by-reference behavior that we did not intend to support. Specifically, from https://wiki.php.net