[php-src] Issue #8344: Attribute parameters cannot contain BackedEnum values
| From: | iluuu1994 | Date: | Mon, 11 Apr 2022 19:29:51 +0000 |
| Subject: | [php-src] Issue #8344: Attribute parameters cannot contain BackedEnum values | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-240846@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8344
Comment Author: iluuu1994
There's two ways to solve this:
1. Allow
-> in constant expressions
2. Allow enums (or objects) as array keys (https://wiki.php.net/rfc/object_keys_in_arrays)
Solution 1 didn't make sense before enums and before allowing new in constant
expressions but I guess at this point it would be somewhat more sensible. @nikic WDYT?