Re: [PHP-DEV] Asymmetric visibility Reflection API problems

2024-10-04 Thread Ilija Tovilo
Hi Valentin Thank you for bringing up your concerns. On Thu, Oct 3, 2024 at 3:32 PM Valentin Udaltsov wrote: > > We are going to talk about the asymmetric visibility RFC [2] and the > new `ReflectionProperty::is(Private|Protected)Set()` > methods. Consider a class and reflected facts about it's

Re: [PHP-DEV] Asymmetric visibility Reflection API problems

2024-10-04 Thread Tim Düsterhus
Hi This thread is a good example why RFCs with a large impact should ideally be implemented well in advance of feature freeze. Am 2024-10-03 15:32, schrieb Valentin Udaltsov: Here's why it works this way. Internally properties with symmetric visibility do not have an asymmetric flag. That is

[PHP-DEV] Asymmetric visibility Reflection API problems

2024-10-03 Thread Valentin Udaltsov
Hi, internals! Recently I've started testing the new features of the PHP 8.4 Reflection API and found some of them unintuitive. At first, I reported this as a bug [1], but then Ilija explained that the behavior is intentional. So I've decided to discuss the issue publicly. We are going to talk ab