KOI 55 system
The two planets, KOI 55.01 and KOI 55.02, orbit the star KOI 55, a subdwarf B star, which is the leftover core of a red giant star. The star is an old and dying one, and has passed its red giant phase where it expands enormously, destroying (or at least barbecuing) any nearby planets in the process before becoming just an exposed core of its former self.
Both planets have very tight orbits close to the star, so they were probably engulfed during the red giant phase but managed to survive (albeit “deep-fried”). Having migrated so close, they probably plunged deep into the star’s envelope during the red giant phase, but survived.
As the star puffs up and engulfs the planet, the planet has to plow through the star’s hot atmosphere and that causes friction, sending it spiraling toward the star. As it's doing that, it helps strip atmosphere off the star. At the same time, the friction with the star’s envelope also strips the gaseous and liquid layers off the planet, leaving behind only some part of the solid core, scorched but still there.