You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP 8.4 adds PropertyHookType unit enum (Get, Set) used by ReflectionProperty::getHooks() return map keys. Issue #7295 tracks the reflection methods; they cannot be implemented correctly without registering this builtin enum.
Summary
PHP 8.4 adds
PropertyHookTypeunit enum (Get,Set) used byReflectionProperty::getHooks()return map keys. Issue #7295 tracks the reflection methods; they cannot be implemented correctly without registering this builtin enum.php-src reference
ext/reflection/php_reflection.stub.php—enum PropertyHookType { case Get; case Set; }ext/reflection/php_reflection.c—ReflectionProperty::getHooks()Repro
Current:
bool(false)forclass_exists('PropertyHookType')Expected (Zend PHP 8.4+): enum registered;
PropertyHookType::Get->name === 'Get'Implementation (PHP-in-PHP)
PropertyHookTypeunit enum inext/standard/BuiltinEnums.php(referenced as pattern in Stdlib: ExitStatus enum — PHP 8.4 exit()/die() backed enum missing (basic_functions.stub.php) #7294 issue body).ReflectionProperty::getHooks()..phptfor enum existence + reflection map key types.Done when
bool(true)and case nameGetgetHooks()can return[PropertyHookType::Get => Closure, …]matching Zendruntime/Links
#7295 · #7294 · #1492