--TEST-- Bug #81582: Stringable not implicitly declared if __toString() came from a trait --FILE-- getInterfaceNames()); $rc = new ReflectionClass(T2::class); var_dump($rc->getInterfaceNames()); ?> --EXPECT-- bool(true) bool(true) array(0) { } array(0) { }