[php-src] Issue #7726: enums: is_case() function

From: Date: Mon, 06 Dec 2021 16:14:42 +0000
Subject: [php-src] Issue #7726: enums: is_case() function
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-238218@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7726 Author: richirm77 ### Description There is currently no way to determine if an expression or variable is of type "enum" (or I don't know how). Since "enum" is a new data type, it would be desirable for there to be a function to know if an expression or variable is a case of an enumeration. Such a function could be: ```php is_case() is_enum_case() is_enumcase() ```

« previous php.bugs (#238218) next »