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
{{ message }}
Repository navigation
Stdlib: ReflectionClass::getTraits() missing — getTraitNames() works (ext/reflection/php_reflection.c) #22108
Zend exposes ReflectionClass::getTraits() as an associative array of trait name → ReflectionClass for each trait used by the class. This compiler implements getTraitNames() but not getTraits(), so trait-aware reflection code fails at runtime.
Repro
Zend 8.2
VM (2026-07-22)
method_exists(ReflectionClass::class, 'getTraits') on class C { use T; }
Activity
PurHur commentedon Jul 22, 2026
claim: PHP Compiler STD Lib Advanced — batch (issues #22127, #22108, #22145, #22064, #22144; sequential PRs)
Queued after #22127: ReflectionClass::getTraits().
PurHur commentedon Jul 22, 2026
claim: PHP Compiler STD Lib Advanced — starting #22108 after #22127 merged (PR #22153).
Implementing ReflectionClass::getTraits() (php-src-strict).
Stdlib: ReflectionClass::getTraits() name=>ReflectionClass map (#22108)…
PurHur commentedon Jul 22, 2026
merged: #22154
Verification
keys=["T1","T2"]/empty=[]/OKphpunit --filter reflection_class_get_traits: OK (2 tests, VM+JIT)Next in batch: #22145 ReflectionParameter::canBePassedByValue() by-ref semantics
Stdlib: ReflectionClass::getInterfaces() name=>ReflectionClass map (#…