``\string`` is not valid either as ``string`` is not a class.

The issue IMO is that the IDE reads it as a method signature, and ``public function value(string $variable, mixed $default)`` would indeed expect a class named ``string``, not a string, as strings cannot be typehinted