In a method I'm using (from SF `Kernel` class) I have the following:
public function __construct(string $environment, bool $debug)
And down the line $environment will be used like
But on this line (and others like it), I receive the following inspection warning:
Warning:(63, 47) Method __toString is not implemented for '\Symfony\Component\HttpKernel\string'
string here is not a class, but a primitve, but the inspection treating as a class that doesn't implement `_toString`, which doesn't make any sense for a string primitive.
Is there any workaround that doesn't involve disabling that inspection completely?