> > For example, this is valid: >> >> echo "string"::class; >> > > What! Why is it allowed when it gives the same as string::class, and > $string::class is an error? https://3v4l.org/hfvXm#v8.1rc3 >
Sorry I forgot the namespace... so it really gives the same as "string". https://3v4l.org/rlZFF#v8.1rc3 Still surprising... maybe possibly useful for dynamically generated code? :/ -- Guilliam Xavier