May I suggest using foo::__CLASS__ instead of foo::class ? It's longer, but closer to what already exists for this semantic (class name as string), don't you think ?
So, at current, is this small enough for just a pull request, or does this > deserve its own RFC? > Personnaly, I would say that an RFC would be good for historical reference and documentation. Nicolas