[php-src] Issue #8344: Attribute parameters cannot contain BackedEnum values

From: Date: Tue, 12 Apr 2022 11:29:48 +0000
Subject: [php-src] Issue #8344: Attribute parameters cannot contain BackedEnum values
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240872@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8344 Comment Author: michnovka @iluuu1994 I dont know how Enum::CASE is handled internally in constant expressions now. Is it instantiated? If not, I would very much like to fix it just for Enums in this version and make the big change of allowing all -> in major. After all, I just need to access a "static property" of BackedEnum. It feels like a strong limitation that should not be mixed with assigning (new Foo)->bar to constant expressions

« previous php.bugs (#240872) next »