Hi Ilija, pt., 1 lip 2022 o 15:03 Ilija Tovilo <tovilo.il...@gmail.com> napisał(a):
> Hi everyone > > I opened voting for the "Fetch properties of enums in const expressions" > RFC. > https://wiki.php.net/rfc/fetch_property_in_const_expressions I voted NO because the originating problem this RFC tries to solve described in https://github.com/php/php-src/issues/8344 is easily solvable by aither 1. introducing a simple constant string value used in both places the enum case and as an attribute value, 2. changing the attribute argument to enum instead. Personally, I'd see using enums as array keys feature first instead (which the RFC reminds in its introductory section as not possible yet) before we start improving places around enums. Best regards, Michał Marcin Brzuchalski