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
class_implements() and ReflectionClass::getInterfaceNames() of an interface omit the interfaces it extends. #242
class_implements() and ReflectionClass::getInterfaceNames() of an interface omit the interfaces it extends.
Repro
<?phpinterface I {}
interface J extends I {}
echojson_encode(class_implements('J')), "\n";
echojson_encode((newReflectionClass('J'))->getInterfaceNames()), "\n";
var_dump((newReflectionClass('J'))->implementsInterface('I'));
Expected (php)
{"I":"I"}
["I"]
bool(true)
Actual (manticore 485cc0b9, Darwin arm64)
[]
[]
bool(false)
Tracking
Known-bug repro: tests/aot/repro/wrong/class_implements_interface_parents.php — bash tests/aot/xfail.sh -k class_implements_interface_parents reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.
Activity
Repro #242 #243: class_implements of an interface misses its parents;…
Compile and serve a Symfony app natively: ownership/inference fixes, …