Ok, but a popular usage is also with functions. For example, strlen::class.
What should the compiler use in this case?
Replacing a string with an object of a strigable class is not the same. Say
I have code like this:

function callFoo(callable $func) {
    echo $func('bar');
}
callFoo(strlen::class);

This would trigger an error as the ClassName is not an invokable class.

Reply via email to